forked from ScottLogic/blog
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5acdb7f
commit 6196216
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
const relativeUrls = require('./pa11y-ci-urls'); | ||
|
||
const chromiumBin = process.env.CHROMIUM_BIN; | ||
if (!chromiumBin) { | ||
throw new Error('CHROME_BIN environment variable is not set'); | ||
} | ||
|
||
const baseUrl = 'http://localhost:4000'; | ||
|
||
module.exports = { | ||
defaults: { | ||
chromeLaunchConfig: { | ||
executablePath: chromiumBin, | ||
}, | ||
ignore: [ | ||
'WCAG2AA.Principle1.Guideline1_4.1_4_3.G18.Fail', // colour contrast, which is a known issue | ||
], | ||
}, | ||
urls: relativeUrls.map((url) => `${baseUrl}${url}`), | ||
}; |