@sa11y/wdio
Provides assertAccessible()
, assertAccessibleSync()
APIs that can be used with WebdriverIO to check accessibility of web pages rendered in browsers.
Usage
import { assertAccessible, assertAccessibleSync } from '@sa11y/wdio';
describe('demonstrate usage of @sa11y/wdio', () => {
it('should demonstrate usage of assertAccessible API', async () => {
await browser.url('pageToBeTested.html');
await assertAccessible();
});
it('should demonstrate usage of assertAccessibleSync API', () => {
browser.url('pageToBeTested.html');
assertAccessibleSync();
});
});
Reference