Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFR] fix filter test by adapting "selectFilter" method #665

Merged
merged 1 commit into from
Aug 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cypress/e2e/views/common.view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const navLink = ".pf-v5-c-nav__link";
export const closeSuccessNotification = "button[aria-label^='Close Success alert:']";
export const divHeader = "[id^=pf-random-id-]";
export const divBottom = "#tags-pagination-bottom";
export const selectFilter = "div.pf-c-toolbar__group.pf-m-toggle-group.pf-m-filter-group.pf-m-show";
export const selectFilter = "div.pf-m-toggle-group.pf-m-filter-group.pf-m-show";
export const itemsSelectInsideDialog = "div[role='dialog'] button[aria-label='Select']";
export const nameHelperBusiness = "#business-service-name-helper";
export const nameHelperStakeholderGroup = "#-helper";
Expand Down
4 changes: 2 additions & 2 deletions cypress/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,8 @@ export function selectFilter(filterName: string, identifiedRisk?: boolean, value
cy.get(commonView.selectFilter)
.eq(value)
.within(() => {
cy.get("div.pf-c-dropdown").click();
cy.get("ul.pf-c-dropdown__menu").within(() => {
cy.get("#filtered-by").click();
cy.get("ul.pf-v5-c-dropdown__menu").within(() => {
clickByText("a", filterName);
});
});
Expand Down
Loading