Skip to content

Commit 06fe281

Browse files
committed
added before() hook
1 parent 8604f59 commit 06fe281

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/react-integration/cypress/integration/aboutmodal.spec.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
describe('About Modal Demo Test', () => {
2-
it('Open + close about modal', () => {
2+
before(() => {
33
cy.visit('http://localhost:3000/about-modal-demo-nav-link');
4-
cy.get('#modal-button', { timeout: 10000 }).should('be.visible').click();
4+
});
5+
it('Open + close about modal', () => {
6+
cy.get('#modal-button').click();
57
cy.get('.pf-v6-c-about-modal-box').should('exist');
68
cy.get('.pf-v6-c-button[aria-label="Close Dialog"]').click();
79
cy.get('.pf-v6-c-about-modal-box').should('not.exist');

0 commit comments

Comments
 (0)