diff --git a/cypress/e2e/tests/migration/applicationinventory/analysis/source_analysis.test.ts b/cypress/e2e/tests/migration/applicationinventory/analysis/source_analysis.test.ts index d8dc06576..dc6a54f94 100644 --- a/cypress/e2e/tests/migration/applicationinventory/analysis/source_analysis.test.ts +++ b/cypress/e2e/tests/migration/applicationinventory/analysis/source_analysis.test.ts @@ -248,7 +248,7 @@ describe(["@tier1"], "Source Analysis", () => { cy.get("h2", { timeout: 5 * SEC }).should("contain", "No tags available"); }); - it("Analysis for Konveyor example1 application", function () { + it("Bug MTA-4135: Analysis for Konveyor example1 application", function () { // Automates https://github.com/konveyor/example-applications/tree/main/example-1 const application = new Analysis( getRandomApplicationData("Example 1", { diff --git a/cypress/e2e/tests/migration/controls/stakeholdergroups/pagination.test.ts b/cypress/e2e/tests/migration/controls/stakeholdergroups/pagination.test.ts index 98de3735a..3c86e3991 100644 --- a/cypress/e2e/tests/migration/controls/stakeholdergroups/pagination.test.ts +++ b/cypress/e2e/tests/migration/controls/stakeholdergroups/pagination.test.ts @@ -22,16 +22,15 @@ import { validatePagination, itemsPerPageValidation, autoPageChangeValidations, - deleteByList, + deleteAllStakeholderGroups, } from "../../../../../utils/utils"; import { Stakeholdergroups } from "../../../../models/migration/controls/stakeholdergroups"; import { appTable } from "../../../../views/common.view"; -let stakeholderGroupsList: Stakeholdergroups[] = []; describe(["@tier3"], "Stakeholder groups pagination validations", function () { before("Login and Create Test Data", function () { login(); - stakeholderGroupsList = createMultipleStakeholderGroups(11); + createMultipleStakeholderGroups(11); }); beforeEach("Interceptors", function () { @@ -62,6 +61,6 @@ describe(["@tier3"], "Stakeholder groups pagination validations", function () { }); after("Perform test data clean up", function () { - deleteByList(stakeholderGroupsList); + deleteAllStakeholderGroups; }); }); diff --git a/cypress/e2e/tests/migration/controls/stakeholders/pagination.test.ts b/cypress/e2e/tests/migration/controls/stakeholders/pagination.test.ts index 69572c803..e105eaed6 100644 --- a/cypress/e2e/tests/migration/controls/stakeholders/pagination.test.ts +++ b/cypress/e2e/tests/migration/controls/stakeholders/pagination.test.ts @@ -18,48 +18,50 @@ limitations under the License. import { login, selectItemsPerPage, - createMultipleStakeholders, + createMultipleStakeholderGroups, validatePagination, itemsPerPageValidation, autoPageChangeValidations, - deleteAllRows, + deleteByList, } from "../../../../../utils/utils"; +import { Stakeholdergroups } from "../../../../models/migration/controls/stakeholdergroups"; import { appTable } from "../../../../views/common.view"; -import { Stakeholders } from "../../../../models/migration/controls/stakeholders"; +let stakeholderGroupsList: Stakeholdergroups[] = []; -describe(["@tier3"], "Stakeholder pagination validations", function () { +describe(["@tier3"], "Stakeholder groups pagination validations", function () { before("Login and Create Test Data", function () { login(); - createMultipleStakeholders(11); + stakeholderGroupsList = createMultipleStakeholderGroups(11); }); beforeEach("Interceptors", function () { // Interceptors - cy.intercept("GET", "/hub/stakeholder*").as("getStakeholders"); + cy.intercept("GET", "/hub/stakeholdergroups*").as("getStakeholdergroups"); }); it("Navigation button validations", function () { - Stakeholders.openList(); - cy.get("@getStakeholders"); + Stakeholdergroups.openList(); + cy.get("@getStakeholdergroups"); selectItemsPerPage(10); validatePagination(); }); it("Items per page validations", function () { - Stakeholders.openList(); - cy.get("@getStakeholders"); - selectItemsPerPage(10); - itemsPerPageValidation(appTable, "Email"); + Stakeholdergroups.openList(); + cy.get("@getStakeholdergroups"); + itemsPerPageValidation(); }); it("Last page item(s) deletion, impact on page reload validation", function () { - Stakeholders.openList(); - cy.get("@getStakeholders"); + // Issue - https://issues.redhat.com/browse/TACKLE-155 + // Navigate to stakeholder groups tab + Stakeholdergroups.openList(); + cy.get("@getStakeholdergroups"); selectItemsPerPage(10); - autoPageChangeValidations(appTable, "Email", true); + autoPageChangeValidations(appTable, "Name", true); }); after("Perform test data clean up", function () { - deleteAllRows(); + deleteByList(stakeholderGroupsList); }); -}); +}); \ No newline at end of file diff --git a/cypress/utils/utils.ts b/cypress/utils/utils.ts index d7f35af66..8fe5a3461 100644 --- a/cypress/utils/utils.ts +++ b/cypress/utils/utils.ts @@ -1292,7 +1292,7 @@ export function deleteAllBusinessServices() { export function deleteAllStakeholderGroups(cancel = false): void { Stakeholdergroups.openList(); - deleteAllItems(); + deleteAllRows(); } export function deleteAllStakeholders(): void {