summaryrefslogtreecommitdiffstats
path: root/src/pybind/mgr/dashboard/frontend/cypress/e2e/a11y/dashboard.e2e-spec.ts
blob: 39a2dbf14cbd0064053d171201804e4a288d110d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import { DashboardPageHelper } from '../ui/dashboard.po';

describe('Dashboard Main Page', { retries: 0 }, () => {
  const dashboard = new DashboardPageHelper();

  beforeEach(() => {
    cy.login();
    dashboard.navigateTo();
  });

  describe('Dashboard accessibility', () => {
    it('should have no accessibility violations', () => {
      cy.injectAxe();
      cy.checkAccessibility(
        {
          exclude: [['.cd-navbar-main']]
        },
        {
          rules: {
            'page-has-heading-one': { enabled: false }
          }
        }
      );
    });
  });
});