Skip to content

Commit

Permalink
Minor updates
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 46681f2 commit 5edfb79
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
Expand Down
3 changes: 1 addition & 2 deletions cypress/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1124,8 +1124,7 @@ export function getRowsAmount(): number {

export function getRandomApplicationData(
appName?,
tags?,
options?: { sourceData?; binaryData? }
options?: { sourceData?; binaryData?; tags? }
): applicationData {
let name = data.getAppName();
if (appName) {
Expand Down

0 comments on commit 5edfb79

Please sign in to comment.