Skip to content

Commit

Permalink
adapt custom migration targets rbac tests and mark bug
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Brugarolas <[email protected]>
  • Loading branch information
abrugaro committed Oct 16, 2023
1 parent bbf9afa commit 00c5aaf
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions cypress/e2e/tests/rbac/custom-migration-target.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@ import {
clickByText,
getRandomAnalysisData,
getRandomApplicationData,
hasToBeSkipped,
login,
logout,
preservecookies,
resetURL,
selectItemsPerPage,
} from "../../../utils/utils";
Expand Down Expand Up @@ -72,8 +70,6 @@ describe(["tier2", "@dc"], "Custom Migration Targets RBAC operations", function
});

beforeEach("Persist session", function () {
preservecookies();

cy.fixture("application").then(function (appData) {
this.appData = appData;
});
Expand All @@ -92,10 +88,10 @@ describe(["tier2", "@dc"], "Custom Migration Targets RBAC operations", function
);
analysis.create();

cy.intercept("POST", "/hub/rulebundles*").as("postRule");
cy.intercept("POST", "/hub/targets*").as("postRule");
target.create();
cy.wait("@postRule");
cy.get("article", { timeout: 12 * SEC })
cy.get(".pf-v5-c-card__body", { timeout: 12 * SEC })
.should("contain", target.name)
.then((_) => {
assertTargetIsVisible(analysis, target);
Expand All @@ -112,7 +108,7 @@ describe(["tier2", "@dc"], "Custom Migration Targets RBAC operations", function
architect.logout();
});

it("Look for created target on an analysis as migrator user", function () {
it("Bug MTA-1455: Look for created target on an analysis as migrator user", function () {
migrator.login();
assertTargetIsVisible(analysis, target);
analyzeAndVerify(analysis);
Expand Down Expand Up @@ -141,8 +137,7 @@ describe(["tier2", "@dc"], "Custom Migration Targets RBAC operations", function
cy.contains("button", "Next", { timeout: 200 }).click();

// Ensures that the latest custom migration target created is the last one in the list
cy.get("form article", { timeout: 12 * SEC })
.children()
cy.get("form .pf-v5-c-card__body", { timeout: 12 * SEC })
.last()
.should("contain", existingTarget.name)
.and("contain", "Custom");
Expand Down

0 comments on commit 00c5aaf

Please sign in to comment.