Skip to content

Commit

Permalink
[RFR][JF] Fixed RBAC-custom-migration-targets.test.ts
Browse files Browse the repository at this point in the history
Signed-off-by: Karishma Punwatkar <[email protected]>

	modified:   cypress/e2e/tests/rbac/custom-migration-target.test.ts

	modified:   cypress/e2e/tests/rbac/custom-migration-target.test.ts

	modified:   cypress/e2e/tests/rbac/custom-migration-target.test.ts
  • Loading branch information
kpunwatk committed Mar 22, 2024
1 parent a02fe85 commit 267419c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions cypress/e2e/tests/rbac/custom-migration-target.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ limitations under the License.
/// <reference types="cypress" />

import {
click,
clickByText,
getRandomAnalysisData,
getRandomApplicationData,
Expand All @@ -26,7 +27,6 @@ import {
} from "../../../utils/utils";
import {
analyzeButton,
application,
button,
SEC,
CustomRuleType,
Expand All @@ -39,8 +39,9 @@ import { Analysis } from "../../models/migration/applicationinventory/analysis";
import { UserArchitect } from "../../models/keycloak/users/userArchitect";
import { UserMigrator } from "../../models/keycloak/users/userMigrator";
import { User } from "../../models/keycloak/users/user";
import { selectBox } from "../../views/applicationinventory.view";

describe(["tier2", "@dc"], "1 Bug: Custom Migration Targets RBAC operations", function () {
describe(["tier2", "@dc"], "Custom Migration Targets RBAC operations", function () {
// Polarion TC 317 & 319
let analysis: Analysis;
let target: CustomMigrationTarget;
Expand Down Expand Up @@ -95,6 +96,7 @@ describe(["tier2", "@dc"], "1 Bug: Custom Migration Targets RBAC operations", fu
.should("contain", target.name)
.then((_) => {
assertTargetIsVisible(analysis, target);
click(selectBox);
analyzeAndVerify(analysis);
});

Expand All @@ -104,13 +106,15 @@ describe(["tier2", "@dc"], "1 Bug: Custom Migration Targets RBAC operations", fu
it("Look for created target on an analysis as architect user", function () {
architect.login();
assertTargetIsVisible(analysis, target);
click(selectBox);
analyzeAndVerify(analysis);
architect.logout();
});

it("Bug MTA-1455: Look for created target on an analysis as migrator user", function () {
it("Look for created target on an analysis as migrator user", function () {
migrator.login();
assertTargetIsVisible(analysis, target);
click(selectBox);
analyzeAndVerify(analysis);
migrator.logout();
});
Expand Down

0 comments on commit 267419c

Please sign in to comment.