-
Notifications
You must be signed in to change notification settings - Fork 39
/
patternfly-a11y.config.js
58 lines (57 loc) · 1.75 KB
/
patternfly-a11y.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/**
* Wait for a selector before running axe
*
* @param page page from puppeteer
*/
async function waitFor(page) {
await page.waitForSelector('.pfext-quick-start-catalog__gallery');
}
module.exports = {
prefix: 'http://localhost:3000',
waitFor,
crawl: false,
urls: [
'/quickstarts-props',
'?quickstart=add-healthchecks',
'?quickstart=install-app-and-associate-pipeline',
{
url: '?quickstart=add-healthchecks',
label: 'quickstart-detail-start',
afterNav: async (page) => {
const buttons = await page.$$('.pfext-quick-start-footer__actionbtn');
await buttons[0].click();
},
},
{
url: '?quickstart=add-healthchecks',
label: 'quickstart-detail-next',
afterNav: async (page) => {
const buttons = await page.$$('.pfext-quick-start-footer__actionbtn');
await buttons[0].click();
const buttons2 = await page.$$('.pfext-quick-start-footer__actionbtn');
await buttons2[0].click();
},
},
{
url: '?quickstart=add-healthchecks',
label: 'quickstart-detail-check-work',
afterNav: async (page) => {
const buttons = await page.$$('.pfext-quick-start-footer__actionbtn');
await buttons[0].click();
const radio = await page.$$('.pfext-quick-start-task-review__radio');
await radio[0].click();
},
},
{
url: '?quickstart=add-healthchecks',
label: 'quickstart-detail-check-work-fail',
afterNav: async (page) => {
const buttons = await page.$$('.pfext-quick-start-footer__actionbtn');
await buttons[0].click();
const radio = await page.$$('.pfext-quick-start-task-review__radio');
await radio[1].click();
},
},
],
ignoreIncomplete: true,
};