From 60163673be9fd3595e2fe676807a830f4ce87be1 Mon Sep 17 00:00:00 2001 From: Jenny <32821331+jenny-s51@users.noreply.github.com> Date: Wed, 8 Jan 2025 11:49:59 -0500 Subject: [PATCH] revert find, update comment --- .../src/__tests__/cypress/cypress/pages/components/Modal.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/__tests__/cypress/cypress/pages/components/Modal.ts b/frontend/src/__tests__/cypress/cypress/pages/components/Modal.ts index a98a223924..b86ff0c403 100644 --- a/frontend/src/__tests__/cypress/cypress/pages/components/Modal.ts +++ b/frontend/src/__tests__/cypress/cypress/pages/components/Modal.ts @@ -11,8 +11,11 @@ export class Modal { } } + // FIXME Remove `hidden: true` once PF version is upgraded to 6.1.0. + // https://issues.redhat.com/browse/RHOAIENG-11946 + // https://github.com/patternfly/patternfly-react/issues/11041 find(): Cypress.Chainable> { - return cy.findByRole('dialog', { name: this.title }); + return cy.findByRole('dialog', { name: this.title, hidden: true }); } findCloseButton(): Cypress.Chainable> {