-
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
(e2e)(template-parts) Add E2E test for editing the title of a new custom template part #50195
(e2e)(template-parts) Add E2E test for editing the title of a new custom template part #50195
Conversation
Size Change: +834 B (0%) Total Size: 1.37 MB
ℹ️ View Unchanged
|
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.
Thanks for helping adding tests!
test/e2e/specs/editor/various/post-editor-template-mode.spec.js
Outdated
Show resolved
Hide resolved
test/e2e/specs/editor/various/post-editor-template-mode.spec.js
Outdated
Show resolved
Hide resolved
test/e2e/specs/editor/various/post-editor-template-mode.spec.js
Outdated
Show resolved
Hide resolved
test/e2e/specs/editor/various/post-editor-template-mode.spec.js
Outdated
Show resolved
Hide resolved
test/e2e/specs/editor/various/post-editor-template-mode.spec.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.
Thanks for adding a test @fullofcaffeine!
I have little to add on top of @kevin940726's extensive review.
test/e2e/specs/editor/various/post-editor-template-mode.spec.js
Outdated
Show resolved
Hide resolved
Thanks for the review, folks! I'll look into the comments today and add the suggested fixes 👍🏻 |
50ad3e6
to
50cb4a1
Compare
50cb4a1
to
c3808a3
Compare
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.
LGTM! Just a couple of questions below. Thanks again!
test/e2e/specs/editor/various/post-editor-template-mode.spec.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.
LGTM! 🚀 Thanks again, @fullofcaffeine 🙌
What?
Adds a (regression) E2E test for editing the title of a new custom template part. Regress-test the bug that was found and fixed here: #49984 by @jsnajdr.
Why?
A bug was introduced in 15.6 and was not found until after the plugin was released. This specific scenario wasn't being tested.
How?
By creating a new custom template part of a post then editing its name, and making sure the name changes in the title button, after the edit dialog closes.
Testing Instructions
All E2E tests should pass.