RNMobile: Remove workaround to a now-resolved dictation bug #59779
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related PRs
Gutenberg Mobile
: refactor: Remove outdated dictation hack wordpress-mobile/gutenberg-mobile#6720iOS
: Test: Remove workaround to a now-resolved dictation bug wordpress-mobile/WordPress-iOS#22820What?
Reverts a hack that was introduced in #49452. The hack involved manually checking for and removing an
obj
symbol that was added during dictation due to a React Native bug.Why?
The React Native bug behind the issue was fixed in facebook/react-native#37188. As Gutenberg Mobile is now on React Native 0.73, we benefit from that fix. The workaround for the bug is therefore no longer necessary.
How?
The workaround was removed in ecbb195.
Testing Instructions
An installable build is available at wordpress-mobile/WordPress-iOS#22820 for testing on a physical device.
We need to verify that dictation works as expected on iOS, and that no
obj
symbol is added. The following example tests cover that, plus some other issues that came up previously:Test 1: Verify dictation works as expected, with no content loss⤵️
Test 2: Verify no obj symbol is added after dictation⤵️
obj
symbol appended to the post title.obj
symbol is visible from the post list.Test 3: Verify block expands with content⤵️
Test 4: Verify text position is retained after dictating in middle of paragraph⤵️
In addition, verify that there are no failed tests across the Gutenberg, Gutenberg Mobile, and WordPress iOS PRs signalling unwanted side effects.