forked from patternfly/patternfly-react
-
Notifications
You must be signed in to change notification settings - Fork 0
/
selectviewmore.spec.ts
30 lines (28 loc) · 1.05 KB
/
selectviewmore.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
describe('Select Test', () => {
it('Navigate to demo section', () => {
cy.visit('http://localhost:3000/select-view-more-demo-nav-link');
});
it('Verify Select with view more button', () => {
cy.clock();
cy.get('#view-more-select').click();
cy.get('.pf-c-select__menu').contains('View more');
cy.get('.pf-m-load').should('exist');
cy.get('button.pf-c-select__menu-item.pf-m-load').click();
cy.get('.pf-m-loading').should('exist');
cy.tick(16000);
cy.get('.pf-m-load').should('exist');
cy.get('.pf-m-loading').should('not.exist');
cy.get('#view-more-select').click();
});
it('Verify Select with view more button checkboxes', () => {
cy.clock();
cy.get('#view-more-select-check').click();
cy.get('.pf-c-select__menu').contains('View more');
cy.get('.pf-m-load').should('exist');
cy.get('button.pf-c-select__menu-item.pf-m-load').click();
cy.get('.pf-m-loading').should('exist');
cy.tick(16000);
cy.get('.pf-m-load').should('exist');
cy.get('.pf-m-loading').should('not.exist');
});
});