Skip to content

Commit

Permalink
Update application.tagAndCategoryExists()
Browse files Browse the repository at this point in the history
Signed-off-by: Nandini Chandra <[email protected]>
  • Loading branch information
nachandr committed Aug 2, 2023
1 parent 02136a1 commit c04d35d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand All @@ -332,7 +331,6 @@ export class Application {
}
// For Tags
else cy.get(applicationTag).should("contain", tags);
// this.closeApplicationDetails();
}

static validateAssessButton(rbacRules: RbacValidationRules) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand All @@ -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 () {
Expand Down

0 comments on commit c04d35d

Please sign in to comment.