mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-17 16:50:22 +00:00
e2e: fix race condition in transloadit test (#4616)
This commit is contained in:
parent
f3ce884e43
commit
59e097fabe
1 changed files with 2 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
@ -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'])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue