From 9c5e3da1ca17ea077345d244730e25ced44edfff Mon Sep 17 00:00:00 2001 From: Igor Braginsky Date: Mon, 2 Dec 2024 11:56:11 +0200 Subject: [PATCH] Fix for review assessment as architect (#1278) Signed-off-by: Igor Braginsky --- cypress/e2e/tests/rbac/review-assessment.test.ts | 3 ++- cypress/utils/utils.ts | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cypress/e2e/tests/rbac/review-assessment.test.ts b/cypress/e2e/tests/rbac/review-assessment.test.ts index d0004a716..396dc338a 100644 --- a/cypress/e2e/tests/rbac/review-assessment.test.ts +++ b/cypress/e2e/tests/rbac/review-assessment.test.ts @@ -76,7 +76,7 @@ describe(["@tier2"], "Perform assessment and review as Architect", function () { it("As Architect, create archetype, perform archetype assessment and review", function () { architect.login(); - // Automates P0larion MTA-522 + // Automates Polarion MTA-522 const archetype = new Archetype( data.getRandomWord(8), [tags[0].name], @@ -95,6 +95,7 @@ describe(["@tier2"], "Perform assessment and review as Architect", function () { archetype.validateReviewFields(); archetype.delete(); cy.wait(2 * SEC); + architect.logout(); }); after("Clear test data", () => { diff --git a/cypress/utils/utils.ts b/cypress/utils/utils.ts index 8fe5a3461..85b383eff 100644 --- a/cypress/utils/utils.ts +++ b/cypress/utils/utils.ts @@ -199,7 +199,7 @@ export function login(username?: string, password?: string, firstLogin = false): return cy.session(sessionId, () => { cy.log("Login in"); cy.visit(Cypress.env("tackleUrl"), { timeout: 120 * SEC }); - cy.wait(5000); + cy.wait(5 * SEC); cy.get("h1", { timeout: 120 * SEC, log: false }).then(($title) => { // With auth disabled, login page is not displayed and users are taken straight // to the Application Inventory page. @@ -212,7 +212,7 @@ export function login(username?: string, password?: string, firstLogin = false): const userName = username ?? Cypress.env("user"); const userPassword = password ?? Cypress.env("pass"); - + cy.wait(3 * SEC); inputText(loginView.userNameInput, userName); inputText(loginView.userPasswordInput, userPassword); click(loginView.loginButton);