Repository navigation
Tests: Don't assume the checkout directory is named gutenberg (wp/6.0) - #85713
Conversation
The "Allow creating custom block templates in classic themes" snapshot includes the site title, which wp-env derives from the checkout directory name. In a checkout with any other name than `gutenberg`, the snapshot no longer matches. Set the site title to `gutenberg` before the specs run and restore it afterwards, as #83474 does for the Interactivity API router specs. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
🤖 PR meta 🤖🏷️ LabelsThis pull request needs exactly one label indicating its type, and has 0.
Read more about Type labels in Gutenberg. If you cannot add labels yourself, a reviewer can do it for you. |
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. 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:
|
|
Size Change: 0 B Total Size: 1.23 MB ℹ️ View Unchanged
|
What?
Removes assumptions that the repository is checked out into a directory named
gutenbergon thewp/6.0branch. One commit per file:Why?
The "Allow creating custom block templates in classic themes" snapshot includes the site title. wp-env derives the site title from the name of the directory the repository was checked out into, so in a checkout with any other name than
gutenbergthe snapshot no longer matches. The spec now sets the site title togutenbergbefore running and restores it afterwards, as #83474 does for the Interactivity API router specs.This can be encountered in environments that check the repository out under a different directory name, such as private forks.
Testing Instructions
gutenberg.npm ci && npm run build && npm run wp-env start.npm run test-e2e:playwright -- test/e2e/specs/editor/various/post-editor-template-mode.spec.js. The snapshot should match.🤖 Generated with Claude Code