Skip to content

Commit 675f7fc

Browse files
authored
Merge pull request #5603 from nextcloud/backport/5601/stable28
[stable28] test(cypress): Wait for syncs after opening+editing in in `sync.spec.js`
2 parents 0e6fb87 + ec9d88a commit 675f7fc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cypress/e2e/sync.spec.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@ describe('Sync', () => {
3636
cy.intercept({ method: 'POST', url: '**/apps/text/session/*/sync' }).as('sync')
3737
cy.intercept({ method: 'POST', url: '**/apps/text/session/*/save' }).as('save')
3838
cy.openTestFile()
39+
cy.wait('@sync')
3940
cy.getContent().find('h2').should('contain', 'Hello world')
4041
cy.getContent().type('{moveToEnd}* Saving the doc saves the doc state{enter}')
42+
cy.wait('@sync')
4143
})
4244

4345
it('saves the actual file and document state', () => {

0 commit comments

Comments
 (0)