Skip to content

Commit

Permalink
apply PR feedback from Christian
Browse files Browse the repository at this point in the history
  • Loading branch information
jenny-s51 committed Jan 10, 2025
1 parent ab7ef3f commit fbd65a7
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion frontend/src/__tests__/cypress/cypress/pages/loginDialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,18 @@ import { Modal } from '~/__tests__/cypress/cypress/pages/components/Modal';

class LoginDialog extends Modal {
constructor() {
super('Session Expired');
super(/Session Expired/);
}

// FIXME Remove once PF version is upgraded to 6.1.0.
// https://issues.redhat.com/browse/RHOAIENG-11946
// https://github.com/patternfly/patternfly-react/issues/11041
shouldBeOpen(open = true): void {
if (open) {
this.find();
} else {
this.find().should('not.exist');
}
}

find() {
Expand Down

0 comments on commit fbd65a7

Please sign in to comment.