소스 검색

fix e2e flake (#4961)

has been failing 3 times in an hour:
https://github.com/transloadit/uppy/actions/runs/8029895005/job/21936709051
https://github.com/transloadit/uppy/actions/runs/8029682841/job/21936256011
https://github.com/transloadit/uppy/actions/runs/8029645114/job/21936175459

      cy:command ✔  get	.uppy-StatusBar-actionBtn--upload
      cy:command ✔  click
        cy:fetch ➟  (createAssemblies) POST ***/assemblies
                    Status: 200
          cy:xhr ➟  POST https://api2-baarn.transloadit.com/resumable/files/
                    Status: 201
          cy:xhr ➟  POST https://api2-baarn.transloadit.com/resumable/files/
      cy:command ✔  window
      cy:command ✘  assert	expected **1** to equal **0**
Mikael Finstad 1 년 전
부모
커밋
d5e89fd918
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      e2e/cypress/integration/dashboard-transloadit.spec.ts

+ 2 - 1
e2e/cypress/integration/dashboard-transloadit.spec.ts

@@ -183,7 +183,6 @@ describe('Dashboard with Transloadit', () => {
       ],
       { force: true },
     )
-    cy.get('.uppy-StatusBar-actionBtn--upload').click()
 
     cy.window().then(({ uppy }) => {
       // eslint-disable-next-line
@@ -192,6 +191,8 @@ describe('Dashboard with Transloadit', () => {
         Object.values(uppy.getPlugin('Transloadit').activeAssemblies).length,
       ).to.equal(0)
 
+      cy.get('.uppy-StatusBar-actionBtn--upload').click()
+
       const { files } = uppy.getState()
       // eslint-disable-next-line
       // @ts-ignore fix me