diff --git a/cypress/e2e/models/migration/applicationinventory/application.ts b/cypress/e2e/models/migration/applicationinventory/application.ts index 2b897c7fe..d623f761b 100644 --- a/cypress/e2e/models/migration/applicationinventory/application.ts +++ b/cypress/e2e/models/migration/applicationinventory/application.ts @@ -312,8 +312,11 @@ export class Application { .click(); } + /** + * Filter tags on application details page + * @param source string to filter on + */ filterTags(source: string): void { - // Filter tags on application details page this.applicationDetailsTab("Tags"); cy.wait(2000); cy.get("#source-filter-value-select").click(); diff --git a/cypress/e2e/tests/migration/applicationinventory/analysis/auto_tagging_filter.test.ts b/cypress/e2e/tests/migration/applicationinventory/analysis/auto_tagging_filter.test.ts index f6ce93648..937524c40 100644 --- a/cypress/e2e/tests/migration/applicationinventory/analysis/auto_tagging_filter.test.ts +++ b/cypress/e2e/tests/migration/applicationinventory/analysis/auto_tagging_filter.test.ts @@ -59,14 +59,16 @@ describe(["@tier1"], "Source Analysis", () => { this.analysisData = analysisData; this.techTags = analysisData["analysis_for_enableTagging"]["techTags"]; }); + cy.intercept("GET", "/hub/application*").as("getApplication"); }); it("Apply search filter:Analysis on app details page", function () { // Automates Polarion MTA-311 const application = new Analysis( - getRandomApplicationData("tackleTestApp_Source_autoTagging", [tag.name], { - sourceData: this.appData["tackle-testapp-git"], - }), + getRandomApplicationData("tackleTestApp_Source_autoTagging", { + sourceData: this.appData["tackle-testapp-git"]}, + [tag.name], + ), getRandomAnalysisData(this.analysisData["analysis_for_enableTagging"]) ); application.create(); @@ -86,9 +88,10 @@ describe(["@tier1"], "Source Analysis", () => { it("Apply search filter:Manual on app details page", function () { // Automates Polarion MTA-310 const application = new Analysis( - getRandomApplicationData("tackleTestApp_Source_autoTagging", [tag.name], { - sourceData: this.appData["tackle-testapp-git"], - }), + getRandomApplicationData("tackleTestApp_Source_autoTagging", { + sourceData: this.appData["tackle-testapp-git"]}, + [tag.name], + ), getRandomAnalysisData(this.analysisData["analysis_for_enableTagging"]) ); application.create(); diff --git a/cypress/utils/utils.ts b/cypress/utils/utils.ts index 4b3df3b88..f538cc5d2 100644 --- a/cypress/utils/utils.ts +++ b/cypress/utils/utils.ts @@ -1124,8 +1124,8 @@ export function getRowsAmount(): number { export function getRandomApplicationData( appName?, - tags?, - options?: { sourceData?; binaryData? } + options?: { sourceData?; binaryData?; }, + tags? ): applicationData { let name = data.getAppName(); if (appName) {