forked from patternfly/patternfly-react
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtablecompoundexpandable.spec.ts
More file actions
36 lines (34 loc) · 892 Bytes
/
tablecompoundexpandable.spec.ts
File metadata and controls
36 lines (34 loc) · 892 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
31
32
33
34
35
36
describe('Table Compound Expandable Test', () => {
it('Navigate to demo section', () => {
cy.visit('http://localhost:3000/table-compound-expandable-demo-nav-link');
});
it('Verify table string', () => {
cy.get('caption').contains('Compound expandable table');
});
it('Test expandable/collapsible', () => {
cy.get('button.pf-c-table__button')
.first()
.click();
cy.get('button.pf-c-table__button')
.eq(1)
.click();
cy.get('button.pf-c-table__button')
.eq(2)
.click();
cy.get('button.pf-c-table__button')
.first()
.click();
cy.get('button.pf-c-table__button')
.eq(3)
.click();
cy.get('button.pf-c-table__button')
.eq(3)
.click();
cy.get('button.pf-c-table__button')
.eq(4)
.click();
cy.get('button.pf-c-table__button')
.eq(4)
.click();
});
});