test: fix broken tests & change inactive time for cypress

This commit is contained in:
Dominik Biedebach
2022-05-13 14:34:53 +02:00
committed by Dominik
parent 7d25030e80
commit 483468df66
6 changed files with 17 additions and 17 deletions

View File

@@ -4,21 +4,18 @@ context('/src/Examples/CollaborativeEditing/Vue/', () => {
})
it('should show the current room with participants', () => {
cy.get('.editor__status').then(status => {
status.should('contain', 'rooms.')
status.should('contain', 'users online')
})
cy.wait(3000)
cy.get('.editor__status')
.should('contain', 'rooms.')
.should('contain', 'users online')
})
it('should allow user to change name', () => {
cy.window().then(win => {
cy.wait(5000)
cy.stub(win, 'prompt').returns('John Doe')
cy.get('.editor__name > button').click()
cy.wait(1000)
cy.wait(3000)
cy.get('.editor__name').should('contain', 'John Doe')
})
})
})