-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get Accessibility testing working #711
Comments
I have gotten pa11y running locally but the set up is a bit clunky.
I am going to see if it is easier to get our tests running in the existing container. (I tried that earlier and had different problems, but it may be better than this.) |
I have been trying to just get pa11y-ci to install as packages. This in theory should be easy, but I think I am running into some bugs. I can install pa11y in the container that GitHub checks out, but it does not run. This is the same error on the main branch, it just terminates with a 0, so Actions thinks that the test pass. (I think it is a connection error but it could also be a chrome issue.) The container was running the wrong node and npm at first, I got that working locally for me. I will add a PR with more pinning of the versions. I am not sure what caused that issue, but pinning should help make sure we don't have that problem silently. According to the documentation for pa11y, chromium dependencies should be taken care of in the NPM install. When running pa11y-ci in the container it errors saying that it can't find chromium, So, I tried creating a new user and running it not as root, and I got the error It seems like a similar issue to the one described here: pa11y-ci/issues/168 but, this is closed and should have been fixed in the last release. The other remedies, (setting concurrenty to 1 and disabling incognito), also did not work. At this point I had a feeling that the linux distro and puppeteer were not playing nice. So, I figured I would try a Ubuntu image, since we are running cflinuxfs3 in cloud.gov and that is Ubuntu bionic. I got the new image up and running, but I am getting the same error, our friend, |
|
The Node documentation says it should work on any Node version above 12.
All gave Failed to launch Chrome errors, as they did with Node v12. When loading, there are relevant warnings: It just seems like if that was the problem, it shouldn't be working for anyone. Then I upgraded to Node v16.19.0 and |
Implementing Lighthouse instead (for expediency). We will have accessibility testing - we can add Pa11y later, if we choose to |
Breakout issue of deployment pipeline issues.
Background
We have been running Pa11y tests but they were just returning "Failed to run" but the checkmark was green
Acceptance Criteria (We'll know we're done when...)
Pa11y tests actually run on:
Tasks
The text was updated successfully, but these errors were encountered: