forked from patternfly/patternfly-react
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtablecollapsible.spec.ts
More file actions
30 lines (26 loc) · 837 Bytes
/
tablecollapsible.spec.ts
File metadata and controls
30 lines (26 loc) · 837 Bytes
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
describe('Table Collapsible Test', () => {
it('Navigate to demo section', () => {
cy.visit('http://localhost:3000/table-collapsible-demo-nav-link');
});
it('Verify table string', () => {
cy.get('caption').contains('Collapsible table');
});
it('Check number of rows', () => {
cy.get('.pf-c-table')
.find('tbody')
.should('have.length', 4);
});
it('Check number of columns', () => {
cy.get('thead')
.find('th')
.should('have.length', 5);
});
it('Test collapsible', () => {
cy.get('button#expandable-toggle1').click();
cy.get('button#expandable-toggle1').click();
cy.get('button#expandable-toggle3').click();
cy.get('button#expandable-toggle3').click();
cy.get('button#expandable-toggle5').click();
cy.get('button#expandable-toggle5').click();
});
});