]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/cypress/integration/ui/navigation.e2e-spec.ts
update source to Ceph Pacific 16.2.2
[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('be.visible');
14 });
15
16 it('should hide the vertical menu', () => {
17 shared.getMenuToggler().click();
18 shared.getVerticalMenu().should('not.be.visible');
19 });
20
21 it('should navigate to the correct page', () => {
22 shared.checkNavigations(shared.navigations);
23 });
24 });