From dc636164df064048fedb6ba5382bc580f2be3815 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Tue, 28 Nov 2023 17:18:31 +0100 Subject: [PATCH] fixup! fix: Use document id in url --- cypress/e2e/directediting.spec.js | 18 +++++++++--------- cypress/e2e/sync.spec.js | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/cypress/e2e/directediting.spec.js b/cypress/e2e/directediting.spec.js index 911ca13b681..e798bf3f999 100644 --- a/cypress/e2e/directediting.spec.js +++ b/cypress/e2e/directediting.spec.js @@ -62,9 +62,9 @@ describe('direct editing', function() { }) it('Open an existing file, edit it', () => { - cy.intercept({ method: 'POST', url: '**/session/close' }).as('closeRequest') - cy.intercept({ method: 'POST', url: '**/session/push' }).as('push') - cy.intercept({ method: 'POST', url: '**/session/sync' }).as('sync') + cy.intercept({ method: 'POST', url: '**/session/*/close' }).as('closeRequest') + cy.intercept({ method: 'POST', url: '**/session/*/push' }).as('push') + cy.intercept({ method: 'POST', url: '**/session/*/sync' }).as('sync') createDirectEditingLink(user, 'empty.md') .then((token) => { @@ -90,9 +90,9 @@ describe('direct editing', function() { }) it('Create a file, edit it', () => { - cy.intercept({ method: 'POST', url: '**/session/close' }).as('closeRequest') - cy.intercept({ method: 'POST', url: '**/session/push' }).as('push') - cy.intercept({ method: 'POST', url: '**/session/sync' }).as('sync') + cy.intercept({ method: 'POST', url: '**/session/*/close' }).as('closeRequest') + cy.intercept({ method: 'POST', url: '**/session/*/push' }).as('push') + cy.intercept({ method: 'POST', url: '**/session/*/sync' }).as('sync') createDirectEditingLinkForNewFile(user, 'newfile.md') .then((token) => { @@ -119,9 +119,9 @@ describe('direct editing', function() { }) it('Open an existing plain text file, edit it', () => { - cy.intercept({ method: 'POST', url: '**/session/close' }).as('closeRequest') - cy.intercept({ method: 'POST', url: '**/session/push' }).as('push') - cy.intercept({ method: 'POST', url: '**/session/sync' }).as('sync') + cy.intercept({ method: 'POST', url: '**/session/*/close' }).as('closeRequest') + cy.intercept({ method: 'POST', url: '**/session/*/push' }).as('push') + cy.intercept({ method: 'POST', url: '**/session/*/sync' }).as('sync') createDirectEditingLink(user, 'empty.txt') .then((token) => { diff --git a/cypress/e2e/sync.spec.js b/cypress/e2e/sync.spec.js index 880261d7e56..01a68ab7035 100644 --- a/cypress/e2e/sync.spec.js +++ b/cypress/e2e/sync.spec.js @@ -63,7 +63,7 @@ describe('Sync', () => { it('recovers from a short lost connection', () => { let reconnect = false - cy.intercept('**/apps/text/session/*', (req) => { + cy.intercept('**/apps/text/session/*/*', (req) => { if (reconnect) { req.continue() req.alias = 'alive'