Restore original template registration tests alongside activation variants#77068
Restore original template registration tests alongside activation variants#77068
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the 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. |
0c2afff to
bdf03fd
Compare
…t into separate file The template registration tests were modified in #73252 to go through the template activation flow (Duplicate → Activate → Trash). This broke the tests when running without the Gutenberg plugin or without the active_templates experiment enabled. This restores the original pre-template-activation tests in template-registration.spec.js and copies the current trunk version (unchanged) to template-registration-activation.spec.js. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
bdf03fd to
796a5da
Compare
|
Size Change: 0 B Total Size: 7.74 MB ℹ️ View Unchanged
|
|
Flaky tests detected in b73f77d. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/24072036173
|
…on tests Port the toBeLessThanOrEqual and URL search param assertion from the activation variant, which improves test stability. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Let's backport just so the 7.0 branch is tested too. |
…iants (#77068) Co-authored-by: ellatrix <ellatrix@git.wordpress.org> Co-authored-by: jorgefilipecosta <jorgefilipecosta@git.wordpress.org>
|
I just cherry-picked this PR to the wp/7.0 branch to get it included in the next release: f2a2aa6 |
…iants (#77068) Co-authored-by: ellatrix <ellatrix@git.wordpress.org> Co-authored-by: jorgefilipecosta <jorgefilipecosta@git.wordpress.org>
What?
Restores the original template registration e2e tests that work without the
active_templatesexperiment, while keeping the template activation variants in a separate file.Why?
When template activation was moved to an experiment in #73252 (originally introduced in #67125), the original template registration tests were not restored.
How?
template-registration.spec.js— restored to its state before Allow template duplication + concept of active templates #67125, with thesearchForTemplatestability fix from Allow template duplication + concept of active templates #67125 ported overtemplate-registration-activation.spec.js— exact copy of the current trunktemplate-registration.spec.js(unchanged)Test plan
active_templatesexperiment