-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RNMobile] Add media inserter blocks to toolbar (#51827)
* Add media button to native header toolbar * Add other media button types * Display media inserter buttons when no block is selected * Add insertBlocks function to Header Toolbar * Use const instead of function for renderMediaButtons * Remove inline function for onInsertBlock * Update header toolbar media block insertion method * Update media toolbar insertion tests * Update media toolbar insertion tests * Update visual-editor test with Media Toolbar insertion tests * Fix typo in Gallery block test * Update visual editor tests to use toBeVisible when selecting Media Toolbar buttons * Update Visual Editor gallery block selector * Wrap Media Inserter toolbar buttons in ToolbarGroup * Remove iOS ActionSheet conditional from Visual Editor test * Update CHANGELOG --------- Co-authored-by: Gerardo <gerardo.pacheco@automattic.com>
- Loading branch information
1 parent
1ade4ec
commit 1b82cbf
Showing
5 changed files
with
201 additions
and
4 deletions.
There are no files selected for viewing
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
15 changes: 15 additions & 0 deletions
15
packages/edit-post/src/components/visual-editor/test/__snapshots__/index.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,15 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`when nothing is selected media buttons and picker display correctly 1`] = ` | ||
"<!-- wp:paragraph --> | ||
<p>First example paragraph.</p> | ||
<!-- /wp:paragraph --> | ||
<!-- wp:paragraph --> | ||
<p>Second example paragraph.</p> | ||
<!-- /wp:paragraph --> | ||
<!-- wp:gallery {"linkTo":"none"} --> | ||
<figure class="wp-block-gallery has-nested-images columns-default is-cropped"></figure> | ||
<!-- /wp:gallery -->" | ||
`; |
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
1b82cbf
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 1b82cbf.
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/5476109382
📝 Reported issues:
/test/e2e/specs/editor/blocks/image.spec.js
/test/e2e/specs/editor/blocks/image.spec.js