-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Mobile] Fix crash when appending media (Android) (#56791)
* Mobile - Fix subscribeMediaAppend to skip adding unsupported types of files, it currently supports images and video only * Mock requestMediaImport * Mobile - Edit Post tests - Remove old unsupported block test and adds tests for subscribeMediaAppend * Update Changelog
- Loading branch information
Gerardo Pacheco
authored
Dec 11, 2023
1 parent
d1b2abf
commit c0b18b0
Showing
5 changed files
with
139 additions
and
68 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
packages/edit-post/src/test/__snapshots__/editor.native.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Editor appends media correctly for allowed types 1`] = ` | ||
"<!-- wp:image --> | ||
<figure class="wp-block-image"><img src="https://test-site.files.wordpress.com/local-image-1.jpeg" alt=""/></figure> | ||
<!-- /wp:image --> | ||
<!-- wp:image --> | ||
<figure class="wp-block-image"><img src="https://test-site.files.wordpress.com/local-image-3.jpeg" alt=""/></figure> | ||
<!-- /wp:image -->" | ||
`; | ||
|
||
exports[`Editor appends media correctly for allowed types and skips unsupported ones 1`] = ` | ||
"<!-- wp:image --> | ||
<figure class="wp-block-image"><img src="https://test-site.files.wordpress.com/local-image-1.jpeg" alt=""/></figure> | ||
<!-- /wp:image --> | ||
<!-- wp:video --> | ||
<figure class="wp-block-video"><video controls src="file:///local-video-4.mp4"></video></figure> | ||
<!-- /wp:video -->" | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c0b18b0
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.
Flaky tests detected in c0b18b0.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.
🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7169395074
📝 Reported issues:
/test/e2e/specs/site-editor/font-library.spec.js