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";