-
Notifications
You must be signed in to change notification settings - Fork 98
Description
Project
accessibility-checker for Node
Browser
No response
Operating system
Other
Description
We are getting the following error in our accessibility unit tests written with accessibility-checker for node when running in Ubuntu 24 latest LTS Version.
We get this error per unit test.
It seems that Ubuntu 24.04 has implemented stronger restrictions around unprivileged user namespaces, not sure if this is the reason of failures.
Many possible solutions we found in the internet are around calling puppeteer with the --no-sandox flag, but also it seems not to be recommended by the Ubuntu troubleshooting message.
This ticket might be useful: puppeteer/puppeteer#12818 (comment)
It might be an issue in puppeteer rather than in accessibililty-checker, not 100% sure but the version of puppeteer used by accessibility-checker seems quite outdated and potentially related.
Steps to reproduce
- Create unit tests using the
accessiblity-checkerapis. This is our code, it loops an array of components that we want to run a11y tests on:
describe('accessibility tests', () => {
Object.keys(Examples).forEach(label => {
it(`${label}`, async () => {
const component = renderInBody(Examples[label]);
const results = await getCompliance(component, label);
expect(JSON.stringify(assertCompliance(results.report))).toEqual('0');
}, 30000);
});
afterAll(() => close());
});
- Run the accessibility test suit in UBUNTU 24.04 and the following error appears.
