Skip to content

Commit

Permalink
Merge pull request #5602 from nextcloud/backport/5601/stable29
Browse files Browse the repository at this point in the history
[stable29] test(cypress): Wait for syncs after opening+editing in in `sync.spec.js`
  • Loading branch information
mejo- authored Apr 3, 2024
2 parents 399ca64 + c98edcb commit 930e407
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cypress/e2e/sync.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down

0 comments on commit 930e407

Please sign in to comment.