From 83f1a4458ef8c38053349c82eb6d44d6c415faa9 Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Sun, 25 Feb 2024 01:21:37 +0800 Subject: [PATCH] fix e2e flake MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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** --- e2e/cypress/integration/dashboard-transloadit.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/e2e/cypress/integration/dashboard-transloadit.spec.ts b/e2e/cypress/integration/dashboard-transloadit.spec.ts index 7991cb9aaa..a21ff13839 100644 --- a/e2e/cypress/integration/dashboard-transloadit.spec.ts +++ b/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