From 9b5aef87b9e904408cf60c2ab11414619184f294 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Mon, 6 May 2024 23:36:32 +0200 Subject: [PATCH] test(cypress): Avoid failure when editor is updated on webdav requests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- cypress/e2e/propfind.spec.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/cypress/e2e/propfind.spec.js b/cypress/e2e/propfind.spec.js index 7ca0929b568..a0353ebcda1 100644 --- a/cypress/e2e/propfind.spec.js +++ b/cypress/e2e/propfind.spec.js @@ -33,7 +33,6 @@ describe('Text PROPFIND extension ', function() { beforeEach(function() { cy.login(user) - cy.visit('/apps/files') }) describe('with workspaces enabled', function() { @@ -45,7 +44,9 @@ describe('Text PROPFIND extension ', function() { // Android app relies on this to detect rich workspace availability it('always adds rich workspace property', function() { cy.uploadFile('empty.md', 'text/markdown', '/Readme.md') - cy.visit('/apps/files') + // FIXME: Ideally we do not need a page context for those tests at all + // For now the dashboard avoids that we have failing requests due to conflicts when updating the file + cy.visit('/apps/dashboard') cy.propfindFolder('/') .should('have.property', richWorkspace, '') cy.uploadFile('test.md', 'text/markdown', '/Readme.md') @@ -59,7 +60,9 @@ describe('Text PROPFIND extension ', function() { // Android app relies on this when navigating nested folders it('adds rich workspace property to nested folders', function() { cy.createFolder('/workspace') - cy.visit('/apps/files') + // FIXME: Ideally we do not need a page context for those tests at all + // For now the dashboard avoids that we have failing requests due to conflicts when updating the file + cy.visit('/apps/dashboard') cy.propfindFolder('/', 1) .then(results => results.pop().propStat[0].properties) .should('have.property', richWorkspace, '') @@ -78,7 +81,9 @@ describe('Text PROPFIND extension ', function() { }) it('does not return a rich workspace property', function() { - cy.visit('/apps/files') + // FIXME: Ideally we do not need a page context for those tests at all + // For now the dashboard avoids that we have failing requests due to conflicts when updating the file + cy.visit('/apps/dashboard') cy.propfindFolder('/') .should('not.have.property', richWorkspace) cy.uploadFile('test.md', 'text/markdown', '/Readme.md')