Skip to content

Commit 5b9c8da

Browse files
committed
update test to allow file downloads with authentication
1 parent 4e2b871 commit 5b9c8da

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

tests/e2e-integration/e2e/sections/dataset/Dataset.spec.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -552,11 +552,10 @@ describe('Dataset', () => {
552552

553553
cy.get('#edit-files-menu').should('exist')
554554

555-
// TODO: Bring back this part of the test when access datafile supports bearer tokens, downloading of files temporary disabled for draft datasets
556-
// cy.findByRole('button', { name: 'Access File' }).as('accessButton')
557-
// cy.get('@accessButton').should('exist')
558-
// cy.get('@accessButton').click()
559-
// cy.findByText('Embargoed').should('exist')
555+
cy.findByRole('button', { name: 'Access File' }).as('accessButton')
556+
cy.get('@accessButton').should('exist')
557+
cy.get('@accessButton').click()
558+
cy.findByText('Embargoed').should('exist')
560559
})
561560
})
562561

0 commit comments

Comments
 (0)