From b95f8fa47db341ba057e24b6b2bacb4e05848602 Mon Sep 17 00:00:00 2001 From: Murderlon Date: Tue, 27 Feb 2024 12:19:52 +0100 Subject: [PATCH] Fix flaky e2e test --- .../integration/dashboard-transloadit.spec.ts | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/e2e/cypress/integration/dashboard-transloadit.spec.ts b/e2e/cypress/integration/dashboard-transloadit.spec.ts index a21ff1383..043d9400f 100644 --- a/e2e/cypress/integration/dashboard-transloadit.spec.ts +++ b/e2e/cypress/integration/dashboard-transloadit.spec.ts @@ -176,15 +176,14 @@ describe('Dashboard with Transloadit', () => { }) it('should not create assembly when all individual files have been cancelled', () => { - cy.get('@file-input').selectFile( - [ - 'cypress/fixtures/images/cat.jpg', - 'cypress/fixtures/images/traffic.jpg', - ], - { force: true }, - ) - cy.window().then(({ uppy }) => { + cy.get('@file-input').selectFile( + [ + 'cypress/fixtures/images/cat.jpg', + 'cypress/fixtures/images/traffic.jpg', + ], + { force: true }, + ) // eslint-disable-next-line // @ts-ignore fix me expect(