-
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] File and Audio block simplify media flow #31025
[RNMobile] File and Audio block simplify media flow #31025
Conversation
Size Change: 0 B Total Size: 1.47 MB ℹ️ View Unchanged
|
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 🎊 !
I also tested the Image and Video blocks in case we introduced a regression in these changes and they work perfectly.
Tested on iPhone 11 (iOS 14.2) and Samsung Galaxy S20 FE 5G (Android 10).
NOTE: While testing I spotted a bug that is not related to these changes, I opened this issue as a follow-up.
Thanks for these efforts @fluiddot. I will check this out. |
Gutenberg Mobile PR wordpress-mobile/gutenberg-mobile#3399
Description
Adds the media options auto opening behavior to the File and Audio block that was implemented for the Image, Video, and Gallery Block
How has this been tested?
Manual Testing
E2E Testing
The auto-opening wasn't tested but the tests were modified to dismiss the picker when it opens. The changes follow the same pattern used in the previous PR. To test :
TEST_RN_PLATFORM=android/ios npm run native device-tests:local gutenberg-editor-file-@canary.test
TEST_RN_PLATFORM=android/ios npm run native device-tests:local gutenberg-editor-audio.test
Regression Testing
I noticed that the logic for the video and image block contained redundant logic within the
autoOpenMediaUpload
prop. For both blocks, the media placeholder is not shown if any of the values ( src or url ) are undefined. 66acdbeScreenshots
File Block
Audio Block
Checklist:
*.native.js
files for terms that need renaming or removal).