Skip to content

Commit

Permalink
Perform operations after re-enabling Keycloak
Browse files Browse the repository at this point in the history
Signed-off-by: Nandini Chandra <[email protected]>
  • Loading branch information
nachandr committed Aug 22, 2023
1 parent c404163 commit 0a3de60
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions cypress/e2e/tests/rbac/disable_keycloak.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,14 @@ import { Assessment } from "../../models/migration/applicationinventory/assessme
let application = new Assessment(getRandomApplicationData());
let stakeholder = new Stakeholders(data.getEmail(), data.getFullName());

describe(["@tier2"], "Perform certain operations after disabling Keycloak", function () {
describe(["@tier1"], "Perform certain operations after disabling Keycloak", function () {
// Automates Polarion MTA-293
before("Disable Keycloak", function () {
login();
patchTackleCR("keycloak", false);

stakeholder.create();
application.create();
application.perform_assessment("low", [stakeholder.name]);
});

beforeEach("Load data", function () {
Expand All @@ -41,16 +40,20 @@ describe(["@tier2"], "Perform certain operations after disabling Keycloak", func
});
});

it("Auth disabled, Verify presence of Review application button", function () {
Application.validateReviewButton(this.rbacRules);
it("Auth disabled, Perform application assessment", function () {
application.perform_assessment("low", [stakeholder.name]);
cy.wait(1000);
application.verifyStatus("assessment", "Completed");
});

it("Auth disabled, Verify presence of assessment context menu buttons", function () {
application.validateAssessmentAvailableOptions(this.rbacRules);
it("Auth disabled, Verify presence of Review application button", function () {
Application.validateReviewButton(this.rbacRules);
});

after("Re-enable Keycloak", function () {
patchTackleCR("keycloak", true);
login();

application.delete();
stakeholder.delete();
});
Expand Down

0 comments on commit 0a3de60

Please sign in to comment.