Skip to content

Commit

Permalink
Added issues filtering by BS (#814)
Browse files Browse the repository at this point in the history
Signed-off-by: Igor Braginsky <[email protected]>
  • Loading branch information
ibragins authored Nov 16, 2023
1 parent 5c69707 commit d3925fa
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cypress/e2e/models/migration/issues/issues.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export class Issues {
click(searchButton);
} else if (item == filterIssue.bs && !Array.isArray(itemName)) {
click(bsFilterName);
clickWithinByText(bsFilterName, button, itemName);
clickByText(button, itemName);
} else if (item == filterIssue.tags && Array.isArray(itemName)) {
click(tagFilterName);
itemName.forEach((name) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,21 @@ import {
getRandomAnalysisData,
deleteByList,
clearAllFilters,
} from "../../../../utils/utils";
import { Analysis } from "../../../models/migration/applicationinventory/analysis";
import { SEC, filterIssue } from "../../../types/constants";
import { Issues } from "../../../models/migration/issues/issues";
} from "../../../../../utils/utils";
import { Analysis } from "../../../../models/migration/applicationinventory/analysis";
import { SEC, filterIssue } from "../../../../types/constants";
import { Issues } from "../../../../models/migration/issues/issues";
import { BusinessServices } from "../../../../models/migration/controls/businessservices";
import * as data from "../../../../../utils/data_utils";
let applicationsList: Array<Analysis> = [];

let appBusinessService: BusinessServices;

describe(["@tier2"], "Issues filtering", () => {
before("Login", function () {
login();
appBusinessService = new BusinessServices(data.getCompanyName(), data.getDescription());
appBusinessService.create();
});

beforeEach("Load data", function () {
Expand All @@ -49,6 +55,7 @@ describe(["@tier2"], "Issues filtering", () => {
}),
getRandomAnalysisData(this.analysisData["source_analysis_on_bookserverapp"])
);
application.business = appBusinessService.name;
application.create();
applicationsList.push(application);
cy.wait(2 * SEC);
Expand All @@ -60,7 +67,14 @@ describe(["@tier2"], "Issues filtering", () => {
clearAllFilters();
});

it("Filtering issues by BS", function () {
Issues.filterBy(filterIssue.bs, appBusinessService.name);
cy.get("tr").should("not.contain", "No data available");
clearAllFilters();
});

after("Perform test data clean up", function () {
deleteByList(applicationsList);
appBusinessService.delete();
});
});

0 comments on commit d3925fa

Please sign in to comment.