-
Notifications
You must be signed in to change notification settings - Fork 4.6k
[Mobile] - Align hook - Add integration tests #46831
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
Conversation
|
Size Change: 0 B Total Size: 1.32 MB ℹ️ View Unchanged
|
SiobhyB
left a comment
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.
LGTM, thanks for adding these! 🙇♀️
I checked through our manual testing suite and saw we have manual tests to check alignment for the following blocks: Buttons, Media & Text, Verse, File, and Audio. I don't think these need to be added to this PR, but I wondered whether it may be worthwhile opening a separate GitHub issue to add them eventually. We could then remove the manual tests. Wdyt?
|
Thank you for reviewing! 🚀
I think we could remove some, but I think we should keep at least one test that tests a few blocks to double-check if elements align correctly (visually). |
Related PRs:
Closes wordpress-mobile/gutenberg-mobile#3792
What?
This PR adds some integration tests for block alignment options on mobile.
Why?
We've had regressions before since we share some logic related to block alignments support.
How?
By adding some integration tests which test a media block, a text block, and a group block.
Testing Instructions
npm run native test packages/block-editor/src/hooks/test/align.native.jsTesting Instructions for Keyboard
N/A
Screenshots or screencast
N/A