-
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
Fix controlled blocks e2e tests after template part support from post editor #37333
Conversation
Size Change: 0 B Total Size: 1.12 MB ℹ️ View Unchanged
|
Code's looking good -- let's maybe just add a Changelog entry to the However, e2e tests are currently failing with a 500 error (in |
@@ -173,19 +160,18 @@ describe( 'Multi-entity save flow', () => { | |||
await page.keyboard.type( '...more title!' ); | |||
|
|||
// Verify update button is enabled. | |||
await page.waitForSelector( enabledSavePostSelector ); | |||
const enabledSaveButton = await page.$( enabledSavePostSelector ); |
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.
There seems to be a problem here, although it was always passing locally 😄 . I'll need to investigate more
a957df1
to
528015f
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.
Thanks Nik! Looking good now 👍
Fixes: #37327
Since these tests relied on the fact that we need to test a controlled block like
template part or reusable block
, I've extractedcreateReusableBlock
and made it an e2e util. It seems that it might be useful in general..