Open TimboTambo opened 1 year ago
I had a similar experience with Fedora Core - tests started failing with "Failed to run". In my case, the problem was the browser path, which I fixed by setting defaults.chromeLaunchConfig.executablePath
in the pa11y-ci
config file.
I've got it working on ubuntu-22.04 by setting the field defaults.chromeLaunchConfig.executablePath
as mentioned by @kussmaul, set with value which solved similar issue.
{
"defaults": {
"chromeLaunchConfig": {
"executablePath": "/usr/bin/google-chrome"
}
}
}
For CircleCI, I've fixed this by adding --no-sandbox
to defaults.chromeLaunchConfig.args
:
{
"defaults": {
"chromeLaunchConfig": {
"args": [
"--no-sandbox"
]
}
}
}
See https://github.com/pa11y/pa11y-ci/blob/master/README.md#docker.
We could add this to the docs. It would be helpful for those configuring CircleCI and Github. If possible I'll submit a PR later.
A few weeks ago our pa11y-ci tests started failing on Github runners when targeting
ubuntu-latest
, coinciding with Github updatinglatest
to target version 22.04.1 (previously version 20.04.5).We are using the latest version of
pa11y-ci
(version 3.0.1). The failure message wasFailed to run
against the URL (as pictured) and the error thrown, logged by the reporter was{"name":"TimeoutError"}
.We updated the Github action to target Ubuntu version 20.04.5 and the tests started passing again. I've looked through the release notes for version 22.04 and can't see anything in particular that might cause these failures.