]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/cypress/integration/ui/navigation.e2e-spec.ts
import quincy beta 17.1.0
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / cypress / integration / ui / navigation.e2e-spec.ts
1 import { NavigationPageHelper } from './navigation.po';
2
3 describe('Shared pages', () => {
4 const shared = new NavigationPageHelper();
5
6 beforeEach(() => {
7 cy.login();
8 Cypress.Cookies.preserveOnce('token');
9 shared.navigateTo();
10 });
11
12 it('should display the vertical menu by default', () => {
13 shared.getVerticalMenu().should('not.have.class', 'active');
14 });
15
16 it('should hide the vertical menu', () => {
17 shared.getMenuToggler().click();
18 shared.getVerticalMenu().should('have.class', 'active');
19 });
20
21 it('should navigate to the correct page', () => {
22 shared.checkNavigations(shared.navigations);
23 });
24 });