From 267419c41441ca0067b6d79410837d00663f7080 Mon Sep 17 00:00:00 2001 From: kpunwatk Date: Fri, 22 Mar 2024 18:50:35 +0530 Subject: [PATCH] [RFR][JF] Fixed RBAC-custom-migration-targets.test.ts Signed-off-by: Karishma Punwatkar 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 --- cypress/e2e/tests/rbac/custom-migration-target.test.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/cypress/e2e/tests/rbac/custom-migration-target.test.ts b/cypress/e2e/tests/rbac/custom-migration-target.test.ts index 284da5f3b..22f71a6e0 100644 --- a/cypress/e2e/tests/rbac/custom-migration-target.test.ts +++ b/cypress/e2e/tests/rbac/custom-migration-target.test.ts @@ -16,6 +16,7 @@ limitations under the License. /// import { + click, clickByText, getRandomAnalysisData, getRandomApplicationData, @@ -26,7 +27,6 @@ import { } from "../../../utils/utils"; import { analyzeButton, - application, button, SEC, CustomRuleType, @@ -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; @@ -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); }); @@ -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(); });