From c04d35d10da71eb97b7ca7d69294ba8709053b0c Mon Sep 17 00:00:00 2001 From: Nandini Chandra Date: Tue, 1 Aug 2023 20:24:05 -0500 Subject: [PATCH] Update application.tagAndCategoryExists() Signed-off-by: Nandini Chandra --- .../e2e/models/migration/applicationinventory/application.ts | 2 -- .../applicationinventory/analysis/source_analysis.test.ts | 5 +++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/cypress/e2e/models/migration/applicationinventory/application.ts b/cypress/e2e/models/migration/applicationinventory/application.ts index 4a4bb1fc7..2b897c7fe 100644 --- a/cypress/e2e/models/migration/applicationinventory/application.ts +++ b/cypress/e2e/models/migration/applicationinventory/application.ts @@ -322,7 +322,6 @@ export class Application { tagAndCategoryExists(tags: string | string[][]): void { // Verify that tags and categories are present on Application details -> Tags page - // this.applicationDetailsTab("Tags"); if (Array.isArray(tags)) { // For Tags and Categories for (var tagIndex = 0; tagIndex < tags.length; tagIndex++) { @@ -332,7 +331,6 @@ export class Application { } // For Tags else cy.get(applicationTag).should("contain", tags); - // this.closeApplicationDetails(); } static validateAssessButton(rbacRules: RbacValidationRules) { 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 9ed33a5b8..a9e72a7cf 100644 --- a/cypress/e2e/tests/migration/applicationinventory/analysis/source_analysis.test.ts +++ b/cypress/e2e/tests/migration/applicationinventory/analysis/source_analysis.test.ts @@ -242,8 +242,7 @@ describe(["@tier1"], "Source Analysis", () => { }); it("Automated tagging using Source Analysis on tackle testapp", function () { - // For tackle test app source credentials are required. - // Automates https://polarion.engineering.redhat.com/polarion/#/project/MTAPathfinder/workitem?id=MTA-298 + // Automates Polarion MTA-208 const application = new Analysis( getRandomApplicationData("tackleTestApp_Source_autoTagging", { sourceData: this.appData["tackle-testapp-git"], @@ -257,9 +256,11 @@ describe(["@tier1"], "Source Analysis", () => { application.manageCredentials(source_credential.name, null); application.analyze(); application.verifyAnalysisStatus("Completed"); + application.applicationDetailsTab("Tags"); application.tagAndCategoryExists( this.analysisData["analysis_for_enableTagging"]["techTags"] ); + application.closeApplicationDetails(); }); it("Disable Automated tagging using Source Analysis on tackle testapp", function () {