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
"Multiple use" block validation logic improvement. #40901
"Multiple use" block validation logic improvement. #40901
Conversation
@getdave Thanks for your feedback on the previous PR. ( My local git history got messed up somehow, So I had to close that PR )
Could you please try with
I think
|
Warning: Type of PR label mismatch To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.
Read more about Type labels in Gutenberg. Don't worry if you don't have the required permissions to add labels; the PR reviewer should be able to help with the task. |
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 this PR. It looks like a good enhancement 👍
Do you think you'll be able to move the tests to use Playwright as we now only use that tool to write new tests?
If you're struggling for time please let us know.
Thanks again
*/ | ||
import { createNewPost, insertBlock } from '@wordpress/e2e-test-utils'; | ||
|
||
describe( 'Validate multiple use', () => { |
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.
Could we move this test to use Playwright?
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.
Hi @getdave, thanks for your review. I'm away from work for the next few weeks, so It would be nice if anyone were interested in taking this issue.
Shall we close this one in favour of #57576? |
What?
Fixes: #38502
Why?
Any block that doesn't support the
multiple
feature, doesn't display the Multiple blocks validation warning when it's inside group blocks.How?
Include
innerBlocks
in the validation process.Testing Instructions
The "Read more" should display the validation warning.
Screenshots or screencast
Before:
before.mov
After:
after.mov