forked from patternfly/patternfly-react
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwizard.spec.ts
More file actions
23 lines (20 loc) · 808 Bytes
/
wizard.spec.ts
File metadata and controls
23 lines (20 loc) · 808 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
describe('Wizard Demo Test', () => {
it('Navigate to demo section', () => {
cy.visit('http://localhost:3000/wizard-demo-nav-link');
});
it('Verify wizard in modal launches in a dialog and has a custom width', () => {
cy.get('#launchWiz').click();
cy.get('#modalWizId.pf-c-wizard').should('exist');
cy.get('.pf-c-modal-box').should('have.attr', 'style', 'width: 710px;');
cy.focused().click();
});
it('Verify wizard in modal sends focus to the new content', () => {
cy.get('#launchWiz').click();
cy.get('#modalWizId.pf-c-wizard').should('exist');
cy.focused().should('have.class', 'pf-c-wizard__close');
cy.focused().click();
});
it('Verify in page wizard displays on page render', () => {
cy.get('#inPageWizId.pf-c-wizard').should('exist');
});
});