From a2ce7e761ccdfa0c60bc6a6d4085cf48ec0b3eae Mon Sep 17 00:00:00 2001 From: kolaente Date: Fri, 18 Dec 2020 23:52:15 +0100 Subject: [PATCH] Change test waits (I wish I wouldn't need them) --- cypress/integration/list/list.spec.js | 2 +- cypress/integration/user/settings.spec.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cypress/integration/list/list.spec.js b/cypress/integration/list/list.spec.js index 79c88247..a1ac6a0d 100644 --- a/cypress/integration/list/list.spec.js +++ b/cypress/integration/list/list.spec.js @@ -33,7 +33,7 @@ describe('Lists', () => { .contains('Add') .click() - cy.wait(3000) // Waiting until the request to create the new list is done + cy.wait(1000) // Waiting until the request to create the new list is done cy.get('.global-notification') .should('contain', 'Success') cy.url() diff --git a/cypress/integration/user/settings.spec.js b/cypress/integration/user/settings.spec.js index 95cbbb08..761c1a26 100644 --- a/cypress/integration/user/settings.spec.js +++ b/cypress/integration/user/settings.spec.js @@ -22,7 +22,7 @@ describe('User Settings', () => { .contains('Upload Avatar') .click() - cy.wait(1000) // Wait for the request to finish + cy.wait(3000) // Wait for the request to finish cy.get('.global-notification') .should('contain', 'Success') }) @@ -36,7 +36,7 @@ describe('User Settings', () => { .contains('Save') .click() - cy.wait(1000) // Wait for the request to finish + cy.wait(3000) // Wait for the request to finish cy.get('.global-notification') .should('contain', 'Success') cy.get('.navbar .user .username')