Skip to content

Commit

Permalink
workaround PF bug with modals causing cypress selectors to fail (#3238)
Browse files Browse the repository at this point in the history
  • Loading branch information
christianvogt authored Sep 24, 2024
1 parent c6e3d76 commit a64dae8
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ export class Modal {
}

find(): Cypress.Chainable<JQuery<HTMLElement>> {
return cy.findByRole('dialog', { name: this.title });
// FIXME Remove `hidden: true` once issue with PF modals is fixed.
// https://issues.redhat.com/browse/RHOAIENG-11946
// https://github.com/patternfly/patternfly-react/issues/11041
return cy.findByRole('dialog', { name: this.title, hidden: true });
}

findCloseButton(): Cypress.Chainable<JQuery<HTMLElement>> {
Expand Down

0 comments on commit a64dae8

Please sign in to comment.