Closed
Description
It seems that occasionally, the E2E tests can fail with the following error message:
Error: Cannot find module 'puppeteer'
This is seemingly related to WordPress/wordpress-develop#347 (comment) and can be fixed by adding the alias used by wp-scripts
. Upon doing this, a further issue occurs related to puppeteer not being able to find the correct build of Chromium. The only way to then resolve this and get the E2E tests working is to delete package-lock.json
and node_modules/
and re-install with npm ci
, followed by npm install
.
We should look into implementing this fix, which should prevent this issue from happening again: WordPress/wordpress-develop@a931153
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment