-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Migrate 'Post Title block' e2e tests to Playwright #55297
Conversation
Co-authored-by: Justin Ahinon <justiny.ahinon@gmail.com> Co-authored-by: Alvi Tazwar <55917380+alvitazwar@users.noreply.github.com>
// Save the post draft and reload. | ||
await page.getByRole( 'button', { name: 'Save draft' } ).click(); | ||
await expect( | ||
page | ||
.getByRole( 'button', { name: 'Dismiss this notice' } ) | ||
.filter( { hasText: 'Draft saved' } ) | ||
).toBeVisible(); |
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.
Maybe it's time to add the editor.saveDraft()
helper. There are at least 20 occurrences of similar logic in the tests.
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.
Here's the PR #55308.
Size Change: 0 B Total Size: 1.65 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.
LGTM 👍
What?
Part of #38851.
Supersedes and closes #41107.
Supersedes and closes #43989.
PR migrated
post-title.test.js
e2e tests to Playwright.Why?
See #38851.
How?
Using best practices and migration guide.
Testing Instructions