-
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
Page spec: merging create page and toggle preview tests #56129
Conversation
Size Change: +390 B (0%) Total Size: 1.7 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.
This is looking great to me @ramonjd, nice work consolidating the tests while keeping them as separate functions to improve readability. By combining the two tests, the net result is a reduction in around 9–10 seconds in test execution for me in my local environment:
Before
After
Just left a comment about one of the comments, and about the linter complaining that the combined test doesn't have any assertions. Other than that, it's looking good. Is this ready to be switched over to ready for review, or are you still drafting? 🙂
Update commentszz
Thanks again for the idea! That's almost enough time to take a deep sip of tea. Perfect! |
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 the quick updates. LGTM! ✨
What and why?
Follow up to #56096
This PR merges the create page and toggle preview tests because they rely on the same page content to work.
It also speeds up the test suite a little because we don't have to reload the page.
The PR also changes the test to check for consistent block order between toggling template preview.
#56096 was testing the presence and order of paragraph blocks, but since they're contained in a single post content block it didn't achieve it's purpose: to test that template changes, e.g., changing the order of post title and post content blocks, are reflected when template preview is toggled to "off".
Testing Instructions
Run the tests using the sweet playwright UI tool!!
npm run test:e2e:playwright -- --ui --headed