Skip to content

[BUG]: Accessibility Checker fails when running in Ubuntu latest version 24.4 #2186

@carlosparreno

Description

@carlosparreno

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.

Image

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

  1. Create unit tests using the accessiblity-checker apis. 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());
});
  1. Run the accessibility test suit in UBUNTU 24.04 and the following error appears.
Image Image

Metadata

Metadata

Assignees

Labels

node-accessibility-checkerIssues in the accessibility-checker componentuser-reportedIssues identified outside of the core team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions