A few raw-handling
API unit tests fail in the native test environment
#55652
Labels
Mobile App - i.e. Android or iOS
Native mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change)
[Type] Bug
An existing feature does not function as intended
Description
The following unit tests of
raw-handling
API fail when running them in the native test environment:html-formatting-remover
phrasing-content-reducer
ms-list-converter
figure-content-reducer
special-comment-converter
normalise-blocks
image-corrector
We currently don't run them as part of the mobile unit test suite (reference), but it would be recommended as the logic covered is used in the content pasting functionality used in the native version.
gutenberg/packages/blocks/src/api/raw-handling/paste-handler.js
Lines 191 to 222 in 820b135
In fact, I found that three of them produce a crash in the editor (only referencing iOS issues but we should expect the same on Android):
(solved in [RNMobile] Fixes a crash on pasting MS Word list markup #56653)ms-list-converter
: RCTFatalException: Unhandled JS Exception: TypeError: undefined is not a function, js engine: hermes: Unhandled JS Exception: TypeError: undefined is not a function, js engine: hermes, stack: wordpress-mobile/gutenberg-mobile#6411(solved in [Mobile] - Crash fixes when pasting HTML content #60676)special-comment-converter
: RCTFatalException: Unhandled JS Exception: TypeError: Cannot set property 'block' of undefined, js engine: hermes: Unhandled JS Exception: TypeError: Cannot set property 'block' of undefined, js engine: hermes, s... wordpress-mobile/gutenberg-mobile#6229(solved in [Mobile] - Crash fixes when pasting HTML content #60676)image-corrector
: EXC_BREAKPOINT: canLoadImageURL: wordpress-mobile/gutenberg-mobile#6332Step-by-step reproduction instructions
ms-list-converter
special-comment-converter
image-corrector
Expected behaviour
raw-handling
unit tests should pass when running them in the native test environment.Actual behaviour
raw-handling
unit tests fail when running them in the native test environment.Screenshots or screen recording (optional)
N/A
WordPress information
Device information
The text was updated successfully, but these errors were encountered: