diff --git a/cypress/integration/modal.spec.ts b/cypress/integration/modal.spec.ts index 72f11f1..c28d151 100644 --- a/cypress/integration/modal.spec.ts +++ b/cypress/integration/modal.spec.ts @@ -80,11 +80,11 @@ describe('Modal', () => { it('moves to the finale page', () => { cy.setLocalStorage('gorogoropanda.com/clearedStage', 'ttw'); cy.visit('/reviews/1') - cy.wait(2000) + cy.wait(6000) clearReview() - cy.wait(2000) + cy.wait(6000) cy.findByTestId('move-to-next-stage-button').click() - cy.wait(2000) + cy.wait(6000) cy.url().should('eq', Cypress.config().baseUrl + '/thank-you-for-playing') }) }) diff --git a/cypress/integration/stage_select.spec.ts b/cypress/integration/stage_select.spec.ts index 6319272..ef89e14 100644 --- a/cypress/integration/stage_select.spec.ts +++ b/cypress/integration/stage_select.spec.ts @@ -2,9 +2,9 @@ describe('Stage select', () => { context('when the user clicks stage 1 panel', () => { it('moves to stage 1', () => { cy.visit('/') - cy.wait(2000) + cy.wait(8000) cy.findByTestId('stage-panel-1').click() - cy.wait(2000) + cy.wait(8000) cy.url().should('eq', Cypress.config().baseUrl + '/stages/1') }) }) diff --git a/cypress/integration/url_access.spec.ts b/cypress/integration/url_access.spec.ts index 201c8a7..762d380 100644 --- a/cypress/integration/url_access.spec.ts +++ b/cypress/integration/url_access.spec.ts @@ -2,7 +2,7 @@ describe('URL access', () => { context('when the user accesses stage 1 URL', () => { it('moves to stage 1', () => { cy.visit('/stages/1') - cy.wait(750) + cy.wait(10000) cy.url().should('eq', Cypress.config().baseUrl + '/stages/1') }) }) @@ -11,7 +11,7 @@ describe('URL access', () => { context('if stage 1 is not cleared yet', () => { it('gets redirected home', () => { cy.visit('/stages/2') - cy.wait(750) + cy.wait(10000) cy.url().should('eq', Cypress.config().baseUrl + '/') }) }) @@ -30,7 +30,7 @@ describe('URL access', () => { context('if no stages are cleared yet', () => { it('gets redirected home', () => { cy.visit('/reviews/1') - cy.wait(750) + cy.wait(10000) cy.url().should('eq', Cypress.config().baseUrl + '/') }) }) @@ -39,7 +39,7 @@ describe('URL access', () => { it('gets redirected home', () => { cy.setLocalStorage('gorogoropanda.com/clearedStage', 'u51'); cy.visit('/reviews/1') - cy.wait(750) + cy.wait(10000) cy.url().should('eq', Cypress.config().baseUrl + '/') }) }) @@ -48,7 +48,7 @@ describe('URL access', () => { it('moves to review 1', () => { cy.setLocalStorage('gorogoropanda.com/clearedStage', 'ttw'); cy.visit('/reviews/1') - cy.wait(750) + cy.wait(2000) cy.url().should('eq', Cypress.config().baseUrl + '/reviews/1') }) })