-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix broken the post-template-editor test. #32904
Conversation
…emplate and wp_template_part posts.
Size Change: +1 B (0%) Total Size: 1.04 MB
ℹ️ View Unchanged
|
packages/e2e-tests/specs/experiments/post-editor-template-mode.test.js
Outdated
Show resolved
Hide resolved
Nice catch! Can anyone explain why (without this PR applied) the tests pass locally but don't pass on CI? Why would a Plugin not be enabled on CI but it is enabled locally? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested this locally and all Post Template Editor tests pass ✅
CI also now seems to be passing 🎉 🎉 🎉 🎉
The other test failures on this PR appear to be known and unrelated. I think we're good to merge this as soon as @gziolo gives his 👍
We may need to force merge to get around those unrelated test failures which shouldn't block this PR in my opinion.
….test.js Co-authored-by: Greg Ziółkowski <[email protected]>
You probably don't have the same setup locally. It requires the most recent WordPress 5.8 beta instance that contains changes to the conditions when the template editing mode is enabled. |
packages/e2e-tests/specs/experiments/post-editor-template-mode.test.js
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be good to go. Many thanks @torounit for tackling this issue 👍🏻
* Change to a theme that supports block-templates, and then delete wp_template and wp_template_part posts. * add plugin for switch add_theme_support('block-templates') * Update packages/e2e-tests/specs/experiments/post-editor-template-mode.test.js Co-authored-by: Greg Ziółkowski <[email protected]> * Update packages/e2e-tests/specs/experiments/post-editor-template-mode.test.js Co-authored-by: Greg Ziółkowski <[email protected]>
* Change to a theme that supports block-templates, and then delete wp_template and wp_template_part posts. * add plugin for switch add_theme_support('block-templates') * Update packages/e2e-tests/specs/experiments/post-editor-template-mode.test.js Co-authored-by: Greg Ziółkowski <[email protected]> * Update packages/e2e-tests/specs/experiments/post-editor-template-mode.test.js Co-authored-by: Greg Ziółkowski <[email protected]>
Description
related: #32744. #32858.
Post Editor Template mode test broken now. This problem is caused by the fact that "block-templates" is not enabled in the classic theme.
I added a plugin to e2e-tests to solve this problem.
How has this been tested?
npm run test-e2e -- --puppeteer-interactive ./packages/e2e-tests/specs/experiments/post-editor-template-mode.test.js
Screenshots
Types of changes
Bug fix
Checklist:
*.native.js
files for terms that need renaming or removal).