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'