-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pa11yci.js
24 lines (23 loc) · 1.05 KB
/
.pa11yci.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
// Starting with Ubuntu 22.04, pa11y-ci requires us to tell it the Chrome binary's path
// Fortunately, GitHub Actions has an environment variable for that.
// The rest of this is so we don't break local development on Macs.
// According to the (current) docs, this can all go away once we upgrade pa11y-ci to 4.0 .
const defaultChromeLaunchConfig = {
args: ['--no-sandbox', '--disable-setuid-sandbox', '--disable-dev-shm-usage'],
};
const chromeLaunchConfig = process.env.CHROME_BIN
? { executablePath: process.env.CHROME_BIN, ...defaultChromeLaunchConfig }
: defaultChromeLaunchConfig;
module.exports = {
urls: [
"http://localhost:3000",
"http://localhost:3000/?swKeyword=tumor",
"http://localhost:3000/?swKeyword=tumor&page=9&pageunit=20",
"http://localhost:3000/?swKeyword=video",
"http://localhost:3000/?swKeyword=cancer%20risk%20assessment%20tools",
"http://localhost:3000/?swKeyword=metastasis",
"http://localhost:3000/?swKeyword=achoo",
"http://localhost:3000/?swKeyword=mynci"
],
chromeLaunchConfig: chromeLaunchConfig
}