]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/cypress/integration/a11y/dashboard.e2e-spec.ts
buildsys: change download over to reef release
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / cypress / integration / a11y / dashboard.e2e-spec.ts
1 import { DashboardPageHelper } from '../ui/dashboard.po';
2
3 describe('Dashboard Main Page', { retries: 0 }, () => {
4 const dashboard = new DashboardPageHelper();
5
6 beforeEach(() => {
7 cy.login();
8 Cypress.Cookies.preserveOnce('token');
9 dashboard.navigateTo();
10 });
11
12 describe('Dashboard accessibility', () => {
13 it('should have no accessibility violations', () => {
14 cy.injectAxe();
15 cy.checkAccessibility(
16 {
17 exclude: [['.cd-navbar-main']]
18 },
19 {
20 rules: {
21 'page-has-heading-one': { enabled: false }
22 }
23 }
24 );
25 });
26 });
27 });