From 60ef07da0fa86bc8f4c9d4c539bc1dcafb71261e Mon Sep 17 00:00:00 2001 From: Dominik Pschenitschni Date: Sat, 2 Oct 2021 22:47:13 +0200 Subject: [PATCH] fix: give the dom some time to update for some tests to pass --- cypress/integration/list/list.spec.js | 3 +-- cypress/integration/list/namespaces.spec.js | 2 +- cypress/integration/user/settings.spec.js | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/cypress/integration/list/list.spec.js b/cypress/integration/list/list.spec.js index 3d597c79c..8685f0a21 100644 --- a/cypress/integration/list/list.spec.js +++ b/cypress/integration/list/list.spec.js @@ -38,8 +38,7 @@ describe('Lists', () => { .contains('Create') .click() - cy.wait(1000) // Waiting until the request to create the new list is done - cy.get('.global-notification') + cy.get('.global-notification', { timeout: 1000 }) // Waiting until the request to create the new list is done .should('contain', 'Success') cy.url() .should('contain', '/lists/') diff --git a/cypress/integration/list/namespaces.spec.js b/cypress/integration/list/namespaces.spec.js index e8c15443e..7d092113a 100644 --- a/cypress/integration/list/namespaces.spec.js +++ b/cypress/integration/list/namespaces.spec.js @@ -67,7 +67,7 @@ describe('Namepaces', () => { .contains('Save') .click() - cy.get('.global-notification') + cy.get('.global-notification', { timeout: 1000 }) .should('contain', 'Success') cy.get('.namespace-container .menu.namespaces-lists') .should('contain', newNamespaceName) diff --git a/cypress/integration/user/settings.spec.js b/cypress/integration/user/settings.spec.js index 36467bae7..42b1f8933 100644 --- a/cypress/integration/user/settings.spec.js +++ b/cypress/integration/user/settings.spec.js @@ -12,7 +12,7 @@ describe('User Settings', () => { cy.get('input[name=avatarProvider][value=upload]') .click() - cy.get('input[type=file]') + cy.get('input[type=file]', { timeout: 1000 }) .attachFile('image.jpg') cy.get('.vue-handler-wrapper.vue-handler-wrapper--south .vue-simple-handler.vue-simple-handler--south') .trigger('mousedown', {which: 1})