mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-12-24 22:21:45 +03:00
Adds modal axe check
This commit is contained in:
parent
8ccf68f7e0
commit
072e15534e
@ -86,6 +86,7 @@ describe('UI tests', function () {
|
||||
'Fonts': ['heading-order'],
|
||||
'Heading': ['heading-order'],
|
||||
'Menu': ['heading-order', 'region'],
|
||||
'Modal': ['region'],
|
||||
'Message': ['heading-order', 'region'],
|
||||
'Page': ['color-contrast', 'heading-order', 'select-name'],
|
||||
'RadioButton': ['duplicate-id', 'region'],
|
||||
@ -107,6 +108,10 @@ describe('UI tests', function () {
|
||||
await page.click('#launch-modal')
|
||||
await page.waitFor('[role="dialog"]')
|
||||
await percySnapshot(page, 'Full Info Modal')
|
||||
|
||||
const results = await new AxePuppeteer(page).disableRules(skippedRules[name] || []).analyze();
|
||||
handleAxeResults(results);
|
||||
|
||||
await page.click('[aria-label="Close modal"]')
|
||||
await page.select('select', 'warning')
|
||||
await page.click('#launch-modal')
|
||||
|
Loading…
Reference in New Issue
Block a user