diff --git a/end-to-end-tests/cypress/e2e/Performance/preview and download template.cy.js b/end-to-end-tests/cypress/e2e/Performance/preview and download template.cy.js index c888a6880..2db128a00 100644 --- a/end-to-end-tests/cypress/e2e/Performance/preview and download template.cy.js +++ b/end-to-end-tests/cypress/e2e/Performance/preview and download template.cy.js @@ -28,12 +28,6 @@ describe("Performance test for preview and download template with multiple acade startTimeStamp = new Date().getTime(); cy.login(); }); - - afterEach(() => { - endTimeStamp = new Date().getTime(); - timeTaken = endTimeStamp - startTimeStamp - expect(timeTaken, "Time Taken").to.lessThan(16000) - }); it("Multiple Academies performance test", function () { //Log the test run environment @@ -95,6 +89,7 @@ describe("Performance test for preview and download template with multiple acade cy.log("endTimeStamp = " + endTimeStamp) timeTaken = endTimeStamp - startTimeStamp cy.log("Time take = " + timeTaken); + expect(timeTaken, "Time Taken").to.lessThan(16000); }); after(function () {