From 757cfb574ee50a0fc8b4f936bb2167014aeeae7f Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Tue, 2 Aug 2022 11:38:43 +0200 Subject: [PATCH] e2e: fix Transloadit test suite with Cypress 10 --- e2e/cypress/integration/dashboard-transloadit.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/e2e/cypress/integration/dashboard-transloadit.spec.ts b/e2e/cypress/integration/dashboard-transloadit.spec.ts index ade35cd048..5ece6bbcc8 100644 --- a/e2e/cypress/integration/dashboard-transloadit.spec.ts +++ b/e2e/cypress/integration/dashboard-transloadit.spec.ts @@ -45,7 +45,7 @@ describe('Dashboard with Transloadit', () => { }) it('should not create assembly when all individual files have been cancelled', () => { - cy.get('@file-input').attachFile(['images/cat.jpg', 'images/traffic.jpg']) + cy.get('@file-input').selectFile(['cypress/fixtures/images/cat.jpg', 'cypress/fixtures/images/traffic.jpg'], { force: true }) cy.get('.uppy-StatusBar-actionBtn--upload').click() cy.window().then(({ uppy }) => { @@ -62,7 +62,7 @@ describe('Dashboard with Transloadit', () => { // Not working, the upstream changes have not landed yet. it.skip('should create assembly if there is still one file to upload', () => { - cy.get('@file-input').attachFile(['images/cat.jpg', 'images/traffic.jpg']) + cy.get('@file-input').selectFile(['cypress/fixtures/images/cat.jpg', 'cypress/fixtures/images/traffic.jpg'], { force:true }) cy.get('.uppy-StatusBar-actionBtn--upload').click() cy.window().then(({ uppy }) => { @@ -81,7 +81,7 @@ describe('Dashboard with Transloadit', () => { // Not working, the upstream changes have not landed yet. it.skip('should complete upload if one gets cancelled mid-flight', () => { - cy.get('@file-input').attachFile(['images/cat.jpg', 'images/traffic.jpg']) + cy.get('@file-input').selectFile(['cypress/fixtures/images/cat.jpg', 'cypress/fixtures/images/traffic.jpg'], { force:true }) cy.get('.uppy-StatusBar-actionBtn--upload').click() cy.wait('@createAssemblies')