Skip to content

Fix Puppeteer Issue with E2E tests #1245

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

Metadata

Assignees

No one assigned

    Labels

    category: devopsFeatures and tools supporting dev process.category: e2eIssues and PRs related to e2e tests.good first issueThe issue is a good candidate for the first community contribution/for a newcomer to the team.needs prioritisationTriage finished and issues are ready for the following processing.size: smallThe issue is sized small.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions