forked from patternfly/patternfly-react
-
Notifications
You must be signed in to change notification settings - Fork 0
/
descriptionlistbreakpoints.spec.ts
31 lines (28 loc) · 1.57 KB
/
descriptionlistbreakpoints.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
describe('Description List Breakpoints Demo Test', () => {
it('Navigate to demo section', () => {
cy.visit('http://localhost:3000/');
cy.get('#description-list-breakpoints-demo-nav-item-link').click();
cy.url().should('eq', 'http://localhost:3000/description-list-breakpoints-demo-nav-link');
});
it('Verify 1Col modifier applied for all viewport sizes ', () => {
cy.get('#1-col-description-list.pf-m-1-col').should('exist');
cy.get('#1-col-description-list.pf-m-1-col-on-md').should('exist');
cy.get('#1-col-description-list.pf-m-1-col-on-lg').should('exist');
cy.get('#1-col-description-list.pf-m-1-col-on-xl').should('exist');
cy.get('#1-col-description-list.pf-m-1-col-on-2xl').should('exist');
});
it('Verify 2Col modifier applied for all viewport sizes ', () => {
cy.get('#2-col-description-list.pf-m-2-col').should('exist');
cy.get('#2-col-description-list.pf-m-2-col-on-md').should('exist');
cy.get('#2-col-description-list.pf-m-2-col-on-lg').should('exist');
cy.get('#2-col-description-list.pf-m-2-col-on-xl').should('exist');
cy.get('#2-col-description-list.pf-m-2-col-on-2xl').should('exist');
});
it('Verify 3Col modifier applied for all viewport sizes ', () => {
cy.get('#3-col-description-list.pf-m-3-col').should('exist');
cy.get('#3-col-description-list.pf-m-3-col-on-md').should('exist');
cy.get('#3-col-description-list.pf-m-3-col-on-lg').should('exist');
cy.get('#3-col-description-list.pf-m-3-col-on-xl').should('exist');
cy.get('#3-col-description-list.pf-m-3-col-on-2xl').should('exist');
});
});