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