-
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
Make reusable block e2e tests independent. #21985
Conversation
@@ -165,40 +209,19 @@ describe( 'Reusable blocks', () => { | |||
} ); | |||
|
|||
it( 'can be inserted after refresh', async () => { |
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.
After investigating, I learned that can be inserted and edited
and can be inserted after refresh
are different tests.
can be inserted and edited
focuses on testing creating and editing in one writing session.can be inserted after refresh
focuses on testing the reusable block is saved correctly to the database and loaded without fail when writing a new post or editing existing ones.
ebd5aa5
to
8d0d9a9
Compare
a40bf8c
to
0f11258
Compare
// When no reusable block is registered, return | ||
if ( ( await page.$x( '//td[text()="No blocks found."]' ) ) !== null ) { | ||
return; | ||
} |
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 was a bit hard to find that this case was failing the tests.
@noisysocks It's ready for review. This PR:
|
Thanks for your work here. For some reason, I missed this PR :( I did an extensive refactor to this test a few weeks ago and I believe it's now based on independent tests. |
Description
Made reusable block e2e tests independent.
How has this been tested?
e2e tested with code.
Screenshots
N/A
Types of changes
Bug fix
Checklist: