mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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:
committed by
Jeremy Elbourn
parent
66c25be710
commit
c5fb94f2a4
@@ -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');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user