chore: run a11y audits on protractor (#2010)

* chore: run a11y audits on protractor

* Fixes accessibility issue in grid-list with `role="listitem"`
* Adds protractor plugin to run aXe-core accessibility audits
* Fixes a bunch of a11y issues in the e2e app to make the aXe audits green

* Force menu y-positions because viewport might be different on Selenium browsers.

* Navigiation links should be hidden by default because those can interfere with the tests.
This commit is contained in:
Paul Gschwendtner
2016-12-13 21:10:31 +01:00
committed by Jeremy Elbourn
parent 66c25be710
commit c5fb94f2a4
10 changed files with 112 additions and 22 deletions
+2 -2
View File
@@ -53,8 +53,8 @@ export class MenuPage {
expectMenuLocation(el: ElementFinder, {x, y}: {x: number, y: number}) {
el.getLocation().then(loc => {
expect(loc.x).toEqual(x);
expect(loc.y).toEqual(y);
expect(loc.x).toEqual(x, 'Expect the x-position to be equal');
expect(loc.y).toEqual(y, 'Expect the y-position to be equal');
});
}