Skip to content
Snippets Groups Projects

Issue #3391723: [PP1][PLAN] Accessibility review

1 file
+ 29
0
Compare changes
  • Side-by-side
  • Inline
+ 29
0
const navigationTest = {
'@tags': ['navigation'],
before(browser) {
browser.drupalInstall({ installProfile: 'demo_umami' });
// later Navigation should be added to nightwatch_a11y_testing profile
browser.drupalInstallModule('navigation');
},
after(browser) {
browser.drupalUninstall();
},
};
const testCases = [
{ name: 'Claro page', path: '/user/1/edit' },
{ name: 'HomePage with Umami', path: '/' },
];
testCases.forEach((testCase) => {
navigationTest[`Accessibility - Navigation Module - ${testCase.name}`] = (browser) => {
browser.drupalLoginAsAdmin(() => {
browser
.drupalRelativeURL(testCase.path)
.axeInject()
.axeRun('body', testCase.options || {});
});
};
});
module.exports = navigationTest;
Loading