fix: give the dom some time to update for some tests to pass

This commit is contained in:
Dominik Pschenitschni 2021-10-02 22:47:13 +02:00
parent e064c3bf96
commit 60ef07da0f
No known key found for this signature in database
GPG key ID: B257AC0149F43A77
3 changed files with 3 additions and 4 deletions

View file

@ -38,8 +38,7 @@ describe('Lists', () => {
.contains('Create') .contains('Create')
.click() .click()
cy.wait(1000) // Waiting until the request to create the new list is done cy.get('.global-notification', { timeout: 1000 }) // Waiting until the request to create the new list is done
cy.get('.global-notification')
.should('contain', 'Success') .should('contain', 'Success')
cy.url() cy.url()
.should('contain', '/lists/') .should('contain', '/lists/')

View file

@ -67,7 +67,7 @@ describe('Namepaces', () => {
.contains('Save') .contains('Save')
.click() .click()
cy.get('.global-notification') cy.get('.global-notification', { timeout: 1000 })
.should('contain', 'Success') .should('contain', 'Success')
cy.get('.namespace-container .menu.namespaces-lists') cy.get('.namespace-container .menu.namespaces-lists')
.should('contain', newNamespaceName) .should('contain', newNamespaceName)

View file

@ -12,7 +12,7 @@ describe('User Settings', () => {
cy.get('input[name=avatarProvider][value=upload]') cy.get('input[name=avatarProvider][value=upload]')
.click() .click()
cy.get('input[type=file]') cy.get('input[type=file]', { timeout: 1000 })
.attachFile('image.jpg') .attachFile('image.jpg')
cy.get('.vue-handler-wrapper.vue-handler-wrapper--south .vue-simple-handler.vue-simple-handler--south') cy.get('.vue-handler-wrapper.vue-handler-wrapper--south .vue-simple-handler.vue-simple-handler--south')
.trigger('mousedown', {which: 1}) .trigger('mousedown', {which: 1})