]> git.proxmox.com Git - ceph.git/blame - ceph/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/navigation.e2e-spec.ts
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / cypress / e2e / ui / navigation.e2e-spec.ts
CommitLineData
f67539c2
TL
1import { NavigationPageHelper } from './navigation.po';
2
3describe('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});