]>
Commit | Line | Data |
---|---|---|
39ae355f TL |
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 | }); |