Skip to content

Commit

Permalink
fix e2e?
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed Aug 8, 2023
1 parent 3bd2588 commit b00a005
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion e2e/cypress/integration/dashboard-transloadit.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,6 @@ describe('Dashboard with Transloadit', () => {

it('should complete on retry', () => {
cy.get('@file-input').selectFile(['cypress/fixtures/images/cat.jpg', 'cypress/fixtures/images/traffic.jpg'], { force: true })
cy.get('.uppy-StatusBar-actionBtn--upload').click()

cy.intercept('POST', 'https://transloaditstatus.com/client_error', {
statusCode: 200,
Expand All @@ -376,7 +375,9 @@ describe('Dashboard with Transloadit', () => {
{ statusCode: 500, body: {} },
).as('failedAssemblyCreation')

cy.get('.uppy-StatusBar-actionBtn--upload').click()
cy.wait('@failedAssemblyCreation')

cy.get('button[data-cy=retry]').click()

cy.wait(['@assemblies', '@resumable'])
Expand Down

0 comments on commit b00a005

Please sign in to comment.