Skip to content

Commit

Permalink
Changed class name
Browse files Browse the repository at this point in the history
Signed-off-by: Igor Braginsky <[email protected]>
  • Loading branch information
ibragins committed Oct 26, 2023
1 parent e655cf5 commit 58e99a7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ import {
targetFilterName,
} from "../../../views/issue.view";

export class Issue {
export class Issues {
/** Contains URL of issues web page */
static fullUrl = Cypress.env("tackleUrl") + "/issues";

public static openList(itemsPerPage = 100, forceReload = false): void {
if (forceReload) {
cy.visit(Issue.fullUrl);
cy.visit(Issues.fullUrl);
}
if (!getUrl().includes(Issue.fullUrl)) {
if (!getUrl().includes(Issues.fullUrl)) {
selectUserPerspective(migration);
}
clickByText(navMenu, "Issues");
Expand All @@ -45,6 +45,7 @@ export class Issue {
[filterIssue.target]: targetFilterName,
};

Issues.openList();
selectFilter(item);
if (selectorMap[item]) {
inputText(selectorMap[item], itemName);
Expand Down
5 changes: 2 additions & 3 deletions cypress/e2e/tests/migration/dynamic-reports/filter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {
} from "../../../../utils/utils";
import { Analysis } from "../../../models/migration/applicationinventory/analysis";
import { SEC, filterIssue } from "../../../types/constants";
import { Issue } from "../../../models/migration/dynamicreports/issue";
import { Issues } from "../../../models/migration/dynamicreports/issues";
let applicationsList: Array<Analysis> = [];

describe(["@tier2"], "Issues filtering", () => {
Expand Down Expand Up @@ -61,8 +61,7 @@ describe(["@tier2"], "Issues filtering", () => {
application.analyze();
application.verifyAnalysisStatus("Completed");

Issue.openList();
Issue.filterBy(filterIssue.appName, application.name);
Issues.filterBy(filterIssue.appName, application.name);
cy.get("tr").should("not.contain", "No data available");
clearAllFilters();
});
Expand Down

0 comments on commit 58e99a7

Please sign in to comment.