From c98edcb8ee6edf711a12608930bc37acb4682a7a Mon Sep 17 00:00:00 2001 From: Jonas Date: Wed, 3 Apr 2024 16:30:03 +0200 Subject: [PATCH] test(cypress): Wait for syncs after opening+editing in in `sync.spec.js` This fixes the failing cypress test on stable27. Signed-off-by: Jonas --- cypress/e2e/sync.spec.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cypress/e2e/sync.spec.js b/cypress/e2e/sync.spec.js index c6338d82804..f47fac08665 100644 --- a/cypress/e2e/sync.spec.js +++ b/cypress/e2e/sync.spec.js @@ -36,8 +36,10 @@ describe('Sync', () => { cy.intercept({ method: 'POST', url: '**/apps/text/session/*/sync' }).as('sync') cy.intercept({ method: 'POST', url: '**/apps/text/session/*/save' }).as('save') cy.openTestFile() + cy.wait('@sync') cy.getContent().find('h2').should('contain', 'Hello world') cy.getContent().type('{moveToEnd}* Saving the doc saves the doc state{enter}') + cy.wait('@sync') }) it('saves the actual file and document state', () => {