From 6ee13fb0ea64e9f306d4a367a973ae84693f439c Mon Sep 17 00:00:00 2001 From: Emma Garland Date: Mon, 24 Aug 2020 16:27:51 +0100 Subject: [PATCH] Timeout is a variable --- .../cypress/integration/Tour/backofficeTour.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Umbraco.Tests.AcceptanceTest/cypress/integration/Tour/backofficeTour.ts b/src/Umbraco.Tests.AcceptanceTest/cypress/integration/Tour/backofficeTour.ts index 0c95faeac0..307da2518c 100644 --- a/src/Umbraco.Tests.AcceptanceTest/cypress/integration/Tour/backofficeTour.ts +++ b/src/Umbraco.Tests.AcceptanceTest/cypress/integration/Tour/backofficeTour.ts @@ -1,7 +1,7 @@ /// context('Backoffice Tour', () => { - + var timeout = 60000; beforeEach(() => { //arrange cy.umbracoLogin(Cypress.env('username'), Cypress.env('password')); @@ -17,21 +17,21 @@ context('Backoffice Tour', () => { //assert cy.get('[data-element="help-tours"]').should("be.visible"); cy.get('[data-element="help-tours"]').click(); - getPercentage(17, 60000); + getPercentage(17, timeout); }); it('Backoffice introduction tour should run then rerun', () => { //act cy.umbracoGlobalHelp().should("be.visible"); cy.umbracoGlobalHelp().click(); - runBackOfficeIntroTour(0, 'Start', 60000); - runBackOfficeIntroTour(17, 'Rerun', 60000); + runBackOfficeIntroTour(0, 'Start', timeout); + runBackOfficeIntroTour(17, 'Rerun', timeout); //assert cy.get('[data-element="help-tours"]').should("be.visible"); cy.get('[data-element="help-tours"]').click(); cy.umbracoGlobalHelp().should("be.visible"); - getPercentage(17, 60000); + getPercentage(17, timeout); }); afterEach(() => {