From 3923fcff2df3d43b852a44606e15f6be4aff2e9f Mon Sep 17 00:00:00 2001 From: Sachin Singla Date: Wed, 9 Aug 2023 12:01:19 +0530 Subject: [PATCH] [RFR] fix delete box dialogue --- cypress/e2e/models/projects.ts | 3 ++- cypress/e2e/models/rulesConfiguration.ts | 2 +- cypress/e2e/types/constants.ts | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cypress/e2e/models/projects.ts b/cypress/e2e/models/projects.ts index ce885fd..89170ef 100644 --- a/cypress/e2e/models/projects.ts +++ b/cypress/e2e/models/projects.ts @@ -24,6 +24,7 @@ import { editButton, MINUTE, next, + projectDelete, projectDetailsPage, projects, reviewPage, @@ -298,7 +299,7 @@ export class Projects { navigateTo(projects); performRowActionByIcon(project, kebabMenu); clickByText("button", deleteButton); - cy.contains("span", projectDetailsPage, { timeout: 120 * SEC }); + cy.contains("span", projectDelete, { timeout: 120 * SEC }); inputText(deleteProjectInput, project); shouldBeEnabled(dangerButton, deleteButton); clickByText(dangerButton, deleteButton); diff --git a/cypress/e2e/models/rulesConfiguration.ts b/cypress/e2e/models/rulesConfiguration.ts index e3ef374..89442b7 100644 --- a/cypress/e2e/models/rulesConfiguration.ts +++ b/cypress/e2e/models/rulesConfiguration.ts @@ -114,7 +114,7 @@ export class RulesConfiguration { click(showAllRules); cy.wait(SEC * 10); } - + filterBy(category: string, technologies: string[]) { if (category == "Target") { clickByText("span", "Source"); diff --git a/cypress/e2e/types/constants.ts b/cypress/e2e/types/constants.ts index a7a863c..f901b04 100644 --- a/cypress/e2e/types/constants.ts +++ b/cypress/e2e/types/constants.ts @@ -53,6 +53,7 @@ export const selectPackages = "Select packages"; export const selectTransformationTarget = "Select transformation target"; export const addApplicationsPage = "Add applications"; export const projectDetailsPage = "Project details"; +export const projectDelete = "Project delete confirmation"; //Applications Page Constants export const addApplication = "Add application";