forked from patternfly/patternfly-react
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathemptystate.spec.ts
36 lines (30 loc) · 1.15 KB
/
emptystate.spec.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
describe('Empty State Demo Test', () => {
it('Navigate to demo section', () => {
cy.visit('http://localhost:3000/');
cy.get('#empty-state-demo-nav-item-link').click();
cy.url().should('eq', 'http://localhost:3000/empty-state-demo-nav-link');
});
it('Verify large empty state', () => {
cy.get('#large-empty-state').should('have.class', 'pf-m-lg');
});
it('Verify full empty state', () => {
cy.get('#full-empty-state')
.contains('Full Empty State')
.and('not.have.class', 'pf-m-large')
.and('not.have.class', 'pf-m-small')
.and('not.have.class', 'pf-m-xl')
.and('not.have.class', 'pf-m-xs');
});
it('Verify small empty state', () => {
cy.get('#small-empty-state').should('have.class', 'pf-m-sm');
});
it('Verify extra large empty state', () => {
cy.get('#xl-empty-state').should('have.class', 'pf-m-xl');
});
it('Verify extra small empty state', () => {
cy.get('#xs-empty-state').should('have.class', 'pf-m-xs');
});
it('Verify full height example carries modifier class', () => {
cy.get('.pf-c-empty-state#full-height-example').should('have.class', 'pf-m-full-height');
});
});