"Multiple use" block validation logic improvement [with Playwright]#57576
Conversation
Mamaduka
left a comment
There was a problem hiding this comment.
Thank you, @fai-sal!
The correct directory for Playwright e2e tests is test/e2e/specs/editor/various.
I also would recommend checking the project e2e test best practices documentation - https://developer.wordpress.org/block-editor/contributors/code/testing-overview/e2e/#best-practices.
getdave
left a comment
There was a problem hiding this comment.
Appreciate all your hard work here 🙇
The e2e tests will need to be rewritten to utilise Playwright APIs such as getByRole.
A lot of the await will be able to be removed as well. You should find it's a lot easier to author the tests as well.
getdave
left a comment
There was a problem hiding this comment.
Thanks for migrating to Playwright. A few comments about the test selectors 🙏
|
Hi @getdave, If you can allocate some time, can you please review the PR again. Thanks 🙇 |
|
I think we should look to land this in time for WP 6.5. I've put it on the board for that project which should ensure a number of 👀 on it. |
scruffian
left a comment
There was a problem hiding this comment.
Left a few nits but this looks good to me.
Co-authored-by: Ben Dwyer <ben@scruffian.com>
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Unlinked AccountsThe following contributors have not linked their GitHub and WordPress.org accounts: @ihdk. Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases. If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
getdave
left a comment
There was a problem hiding this comment.
Let's bring this in. Thank you for the persistence here 🙇
Why
What
Co-authored-by: getdave get_dave@git.wordpress.org
Co-authored-by: Mamaduka mamaduka@git.wordpress.org
Co-authored-by: scruffian scruffian@git.wordpress.org