Skip to content

Commit

Permalink
Merge pull request #723 from Neilhamza/fix_upstream_filter_test
Browse files Browse the repository at this point in the history
[RFR] adapt migration-waves filter test
  • Loading branch information
ibragins authored Sep 27, 2023
2 parents 1da2261 + 4cb0ecc commit e474d2c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion cypress/e2e/views/common.view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ 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-m-toggle-group.pf-m-filter-group.pf-m-show";
export const itemsSelectInsideDialog = "div[role='dialog'] button[aria-label='Select']";
export const itemsSelectInsideDialog =
"div[role='dialog'] button[class='pf-v5-c-menu-toggle__button']";
export const nameHelperBusiness = "#business-service-name-helper";
export const nameHelperStakeholderGroup = "#-helper";
export const actionMenuItem = "span.pf-v5-c-menu__item-text";
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/views/migration-wave.view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export enum MigrationWaveView {
endDateInput = "input[aria-label='endDateStr']",
stakeHoldersInput = "#stakeholders-toggle-select-multi-typeahead-typeahead",
stakeHolderGroupsInput = "#stakeholder-groups-toggle-select-multi-typeahead-typeahead",
actionsButton = "button[aria-label='Actions']",
actionsButton = "button[aria-label='row actions dropdown toggle']",
waveStatusColumn = "td[data-label='Status']",
yearInput = "input[aria-label='Select year']",
migrationWavesTable = "table[aria-label='Migration waves table']",
Expand Down
4 changes: 2 additions & 2 deletions cypress/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,8 @@ export function selectFilter(filterName: string, identifiedRisk?: boolean, value
.eq(value)
.within(() => {
cy.get("#filtered-by").click();
cy.get("ul.pf-v5-c-dropdown__menu").within(() => {
clickByText("a", filterName);
cy.get("div.pf-v5-c-menu__content").within(() => {
clickByText("span", filterName);
});
});
}
Expand Down

0 comments on commit e474d2c

Please sign in to comment.