amp-toolbox icon indicating copy to clipboard operation
amp-toolbox copied to clipboard

fix: run puppeteer tests correctly on Ubuntu 23.10+ OS

Open JamBalaya56562 opened this issue 4 months ago • 1 comments

Summary

Restore Puppeteer Chrome tests on Ubuntu 23.10+ by disabling AppArmor in CI and clean up test imports In addition

Bug Fixes:

  • Fix Puppeteer test failures on Ubuntu-latest by disabling AppArmor restrictions

CI:

  • Add CI step to disable AppArmor on Ubuntu for Puppeteer Chrome tests

Tests:

  • Remove redundant fetch-mock import from end-to-end spec

How to verify your codes work?

I have tested it on my GitHub Actions. Furthermore, run lint.

npm run lint:fix

x-ref: Issues with AppArmor on Ubuntu

JamBalaya56562 avatar Aug 13 '25 01:08 JamBalaya56562

It looks like our tests are broken because of an issue with the most recent release. @erwinmombay is working on fixing it. Once that's fixed and the tests pass on the main branch we can take a look again :)

danielrozenberg avatar Aug 25 '25 17:08 danielrozenberg