Skip to content

Commit

Permalink
ci: Adapt cypress tests to new cleanup behaviour
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr authored and backportbot-nextcloud[bot] committed Mar 9, 2023
1 parent a3c6fb8 commit b38032e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion cypress/e2e/SessionApi.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,8 @@ describe('The session Api', function() {
})

// Failed with a probability of ~ 50% initially
it('ignores steps stored after close cleaned up', function() {
// Skipped for now since the behaviour chanced by not cleaning up the state on close/create
it.skip('ignores steps stored after close cleaned up', function() {
cy.pushAndClose({ connection, steps: [messages.update], version })
cy.createTextSession(undefined, { filePath: '', shareToken })
.then(con => {
Expand Down
4 changes: 2 additions & 2 deletions cypress/e2e/sync.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,14 @@ describe('Sync', () => {
.should('include', 'after the lost connection')
})

it('passes the doc content from one session to the next', () => {
it.only('passes the doc content from one session to the next', () => {
cy.closeFile()
cy.intercept({ method: 'PUT', url: '**/apps/text/session/create' })
.as('create')
cy.openTestFile()
cy.wait('@create', { timeout: 10000 })
.its('response.body')
.should('have.property', 'content')
.should('have.property', 'documentState')
.should('not.be.empty')
cy.getContent().find('h2').should('contain', 'Hello world')
cy.getContent().find('li').should('contain', 'Saving the doc saves the doc state')
Expand Down

0 comments on commit b38032e

Please sign in to comment.