]>
Commit | Line | Data |
---|---|---|
1 | import { NavigationPageHelper } from './navigation.po'; | |
2 | ||
3 | describe('Shared pages', () => { | |
4 | const shared = new NavigationPageHelper(); | |
5 | ||
6 | beforeEach(() => { | |
7 | cy.login(); | |
8 | shared.navigateTo(); | |
9 | }); | |
10 | ||
11 | it('should display the vertical menu by default', () => { | |
12 | shared.getVerticalMenu().should('not.have.class', 'active'); | |
13 | }); | |
14 | ||
15 | it('should hide the vertical menu', () => { | |
16 | shared.getMenuToggler().click(); | |
17 | shared.getVerticalMenu().should('have.class', 'active'); | |
18 | }); | |
19 | ||
20 | it('should navigate to the correct page', () => { | |
21 | shared.checkNavigations(shared.navigations); | |
22 | }); | |
23 | }); |