Skip to content

Commit

Permalink
Fix for review assessment as architect (#1278)
Browse files Browse the repository at this point in the history
Signed-off-by: Igor Braginsky <ibragins@redhat.com>
  • Loading branch information
ibragins authored Dec 2, 2024
1 parent 34e8904 commit 9c5e3da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion cypress/e2e/tests/rbac/review-assessment.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand All @@ -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", () => {
Expand Down
4 changes: 2 additions & 2 deletions cypress/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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);
Expand Down

0 comments on commit 9c5e3da

Please sign in to comment.