Skip to content

Commit

Permalink
test(cy): wait longer for initial sync to avoid timeouts
Browse files Browse the repository at this point in the history
Signed-off-by: Max <max@nextcloud.com>
  • Loading branch information
max-nextcloud committed Jul 2, 2024
1 parent a4ea9fc commit eb9dcbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cypress/e2e/sync.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down

0 comments on commit eb9dcbb

Please sign in to comment.