Open fluiddot opened 1 year ago
The unit tests related to ms-list-converter
will be enabled via https://github.com/WordPress/gutenberg/pull/56653.
ℹ️ Related to this issue, in https://github.com/WordPress/gutenberg/pull/56723 we discovered that several test cases related to processing raw blocks fail in the native version. As part of resolving this issue, we should enable/uncomment the test cases from test/native/integration/blocks-raw-handling.native.js
and provide fixes to address the failures.
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.
https://github.com/WordPress/gutenberg/blob/820b13599bf12f5efa472e36a780cd63e86a67b3/packages/blocks/src/api/raw-handling/paste-handler.js#L191-L222
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 https://github.com/WordPress/gutenberg/pull/56653)ms-list-converter
: https://github.com/wordpress-mobile/gutenberg-mobile/issues/6411(solved in https://github.com/WordPress/gutenberg/pull/60676)special-comment-converter
: https://github.com/wordpress-mobile/gutenberg-mobile/issues/6229(solved in https://github.com/WordPress/gutenberg/pull/60676)image-corrector
: https://github.com/wordpress-mobile/gutenberg-mobile/issues/6332Step-by-step reproduction instructions
⚠️ : When copying HTML into the editor, use the button ) located in the top-right corner of the HTML content in GitHub.
ms-list-converter
* test
```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