Fix Puppeteer Issue with E2E tests #1245
Labels
category: devops
Features and tools supporting dev process.
category: e2e
Issues and PRs related to e2e tests.
good first issue
The issue is a good candidate for the first community contribution/for a newcomer to the team.
needs prioritisation
Triage finished and issues are ready for the following processing.
size: small
The issue is sized small.
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 deletepackage-lock.json
andnode_modules/
and re-install withnpm ci
, followed bynpm install
.We should look into implementing this fix, which should prevent this issue from happening again: WordPress/wordpress-develop@a931153
The text was updated successfully, but these errors were encountered: