[wp-trac] [WordPress Trac] #54409: E2E Tests: Update test for saved draft with no title
WordPress Trac
noreply at wordpress.org
Wed Nov 10 01:41:30 UTC 2021
#54409: E2E Tests: Update test for saved draft with no title
------------------------------+-------------------------
Reporter: davidbaumwald | Owner: desrosj
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 5.9
Component: Build/Test Tools | Version: trunk
Severity: normal | Keywords: needs-patch
Focuses: |
------------------------------+-------------------------
When [52093] changed the default theme to TwentyTwenty Two, E2E tests
failed when testing that draft posts created on the dashboard(with an
empty title) resulted in a different title than expected.
After investigation, it was noted that the previous TwentyTwenty One theme
included a `the_title` filter that changed all empty post titles to
"Untitled". This is the result that the E2E tests were expecting.
However, given that historically, tests are usually crafted for default
behavior(see [38838] as one example), the E2E tests for drafts saved with
no title should be updated to expect "(no title)". Additionally, the test
should also be updated with a more tightly scoped selector to only select
the link text, not any child tags, e.g. `<time>`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54409>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list