From eb9dcbb7831db949276e114e522552a0c0fbe7ad Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 1 Jul 2024 09:46:53 +0200 Subject: [PATCH] test(cy): wait longer for initial sync to avoid timeouts Signed-off-by: Max --- cypress/e2e/sync.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/e2e/sync.spec.js b/cypress/e2e/sync.spec.js index d50b9d65b30..449366e6bf7 100644 --- a/cypress/e2e/sync.spec.js +++ b/cypress/e2e/sync.spec.js @@ -19,10 +19,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.wait('@sync', { timeout: 10000 }) cy.getContent().find('h2').should('contain', 'Hello world') cy.getContent().type('{moveToEnd}* Saving the doc saves the doc state{enter}') - cy.wait('@sync') + cy.wait('@sync', { timeout: 10000 }) }) it('saves the actual file and document state', () => {