--- /dev/null
+import { DashboardPageHelper } from '../ui/dashboard.po';
+
+describe('Dashboard Main Page', { retries: 0 }, () => {
+ const dashboard = new DashboardPageHelper();
+
+ beforeEach(() => {
+ cy.login();
+ Cypress.Cookies.preserveOnce('token');
+ 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 }
+ }
+ }
+ );
+ });
+ });
+});
-<div>
+<main aria-label="Dashboard" >
+ <a href="#main"
+ class="sr-only">skip to content</a>
+
<cd-refresh-selector></cd-refresh-selector>
<ng-container *ngIf="hasGrafana">
<div [ngbNavOutlet]="nav"></div>
</ng-container>
- <cd-health *ngIf="!hasGrafana"></cd-health>
-</div>
+ <cd-health id="main"
+ *ngIf="!hasGrafana"></cd-health>
+</main>