瀏覽代碼

Fix flaky e2e test

Murderlon 1 年之前
父節點
當前提交
b95f8fa47d
共有 1 個文件被更改,包括 7 次插入8 次删除
  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(