Browse Source

Fix flaky e2e test

Murderlon 1 year ago
parent
commit
b95f8fa47d
1 changed files with 7 additions and 8 deletions
  1. 7 8
      e2e/cypress/integration/dashboard-transloadit.spec.ts

+ 7 - 8
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(