-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[RNMobile] Add block transforms integration tests for Text blocks #48823
[RNMobile] Add block transforms integration tests for Text blocks #48823
Conversation
Size Change: 0 B Total Size: 1.34 MB ℹ️ View Unchanged
|
277f367
to
3e6a14a
Compare
Flaky tests detected in fe8eba8. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4355823158
|
# Conflicts: # packages/block-library/src/paragraph/test/transforms.native.js
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.
Nice work, LGTM! 🚀
What?
Add integration tests to cover the block transform functionality of Text blocks.
Why?
This PR is a follow-up of #48792 to cover with tests the block transform functionality.
How?
Integration tests have been added to the following Text blocks:
Additionally, two helpers have been added to simplify the test logic:
transformBlock
: Transforms a block using the Block actions and Transform menus.getBlockTransformOptions
: Returns the transform options. This is used to check that the block transform options of a block match the expected ones.Testing Instructions
Unit tests pass
Unit Tests / Mobile
job pass.Manual test
Follow the change introduced in #48792 that enables more block transforms, it would be great to test the transformations manually to confirm that work as expected.
NOTE: The web version usually displays more options because it supports more blocks. We should only check the supported blocks in the native version.
Here you can check the potential block transformations for the blocks
Paragraph
document.createHTMLDocument
function to work.Heading
List
Quote
Preformatted
Shortcode
Verse
Pullquote
Testing Instructions for Keyboard
N/A
Screenshots or screencast
N/A