-
Notifications
You must be signed in to change notification settings - Fork 67
/
Onboarding.spec.ts
26 lines (20 loc) 路 968 Bytes
/
Onboarding.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
describe('Show Onboarding', () => {
beforeEach(() => cy.createTest());
afterEach(() => cy.deleteTest());
it('should init the onboarding flow', () => {
cy.get('[data-cy=menu-link]').click();
cy.get('[data-cy=menu-onboarding]').click();
cy.get('[data-cy=onboarding-container]').within(() => {
cy.get('[data-cy=onboarding-step]').should('contain.text', '1 of 5');
cy.get('[data-cy=onboarding-next]').click();
cy.get('[data-cy=onboarding-step]').should('contain.text', '2 of 5');
cy.get('[data-cy=onboarding-next]').click();
cy.get('[data-cy=onboarding-step]').should('contain.text', '3 of 5');
cy.get('[data-cy=onboarding-next]').click();
cy.get('[data-cy=onboarding-step]').should('contain.text', '4 of 5');
cy.get('[data-cy=onboarding-next]').click();
cy.get('[data-cy=onboarding-step]').should('contain.text', '5 of 5');
cy.get('[data-cy=onboarding-next]').click();
});
});
});