Repository navigation
Conversation
The `tests/gutenberg/run.js` script was introduced in [48382] to run the Gutenberg end-to-end tests against a WordPress Core checkout. It was never added to any npm script or CI workflow, and it no longer works: - It clones and checks out Gutenberg's `wp/trunk` branch, which no longer exists. - It runs `npm run test-e2e packages/e2e-tests/specs/editor`, but Gutenberg no longer has a `test-e2e` script, and the Puppeteer specs in `packages/e2e-tests/specs` were removed when its tests moved to Playwright. - It fails before reaching any of those steps, because `chalk` v5+ is ESM-only and `require( 'chalk' ).bold` is `undefined`. This removes the script and its `.wp-env.sample.json` file, along with the `chalk` and `uuid` dev dependencies, which were only added for and used by this script. The other change in [48382], the `FORCE_REDUCED_MOTION` webpack definition, was already removed in [56699].
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. Props Bot commandsYou can trigger Props Bot actions by commenting on this PR:
|
|
Merged in r65309. |
This removes
tests/gutenberg/, which was added in r48382 (#50469) to run Gutenberg's end-to-end tests against a Core checkout. The script was never added to an npm script or a CI workflow, and it no longer works:chalkv5+ is ESM-only, sorequire( 'chalk' ).boldisundefinedand the script throws at line 51. That has been true sincechalkwas updated past v4.wp/trunkbranch, andgit ls-remotenow only returnswp/latest.npm run test-e2e packages/e2e-tests/specs/editor. Gutenberg has notest-e2escript (it's nowtest:e2e, which runs Playwright), andpackages/e2e-tests/specswas removed in early 2024 when the Puppeteer tests moved to Playwright (Migrate 'autosave' e2e tests to Playwright gutenberg#58171).FORCE_REDUCED_MOTION=trueto the Core build, but that webpack definition was removed in r56699.Trac ticket: Core-65845.
Use of AI Tools
AI assistance: Yes
Tool(s): Claude Code
Model(s): Claude Opus 5.5
Used for: Investigating whether the script was still used, making the removal, and drafting the commit message and this description. I reviewed the changes.
This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.
🤖 Generated with Claude Code