Skip to content

Commit

Permalink
Merge pull request openshift#12590 from yapei/master
Browse files Browse the repository at this point in the history
OCPBUGS-7970: always close filter dropdown
  • Loading branch information
openshift-merge-robot authored Feb 27, 2023
2 parents 87c3992 + dd364c8 commit 0cd64cc
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export const listPage = {
cy.get('.pf-c-toolbar__content-section').within(() => {
cy.byLegacyTestID('filter-dropdown-toggle')
.find('button')
.as('filterDropdownToggleButton')
.click();
/* PF Filter dropdown menu items are:
<li id="cluster">
Expand All @@ -67,6 +68,7 @@ export const listPage = {
*/
cy.get(`#${rowFilter}`).click(); // clicking on the <li /> works!
cy.url().should('include', '?rowFilter');
cy.get('@filterDropdownToggleButton').click();
});
},
},
Expand Down

0 comments on commit 0cd64cc

Please sign in to comment.