Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Mobile] - BlockList - Block component refactor (#50108)
* Mobile - getMergedGlobalStyles - Update baseColors data to use only values that the editor uses * Mobile - Refator BlockList Block component - It refactors the code to move old class component into functional component. It also uses the same approach as the web editor for with applyWithSelect and applyWithDispatch. It also updates the code to avoid nesting too many views, and updating memoized code like the mergedStyle constant * Mobile - Block List - Block: Fix onFocus prop * Mobile - Block Lisit - Block: Move the BlockOutline component to its own file and fix an issue where the dashed border wasn't showing for inner blocks * Mobile - Block List - Block: Set wrapper styles for the Pressable element * Mobile - Preformatted - Check for existing color attribute within baseColors * Mobile - Block List - Block Invalid Warning - Fixes wrong import and adds two simple integration tests * Mobile - BlockList - Block: Fix issue with Pressable and extra Views, this change simplifies using an extra View * Mobile - BlockList - Block: Add missing isInnerBlockSelected prop * Mobile - BlockList - Block: Remove unneeded mergedStyle prop * Mobile - Block List - Block: Update hasSelectedInnerBlock selector to use the deep param * Mobile - E2E tests - Update cover block test to use new height value after simplifying the View wrappers around blocks * Mobile - BlockList - Block: Add missing isSelected dependency * Mobile - BlockList - Block: Fix issue with the blockWidth value, it needs to be calculated and stored in the component's state to reflect changes * Mobile - Device tests utils - Update some elements XPath related to recent changes in the tree structure * Mobile - E2E tests - Update Drag & Drop test * Mobile - E2E helpers - Update getBlockAtPosition to use the same type element for all blocks * Mobile - E2E tests: Media blocks - restore previous cover height value to check * Mobile - BlockList - Block: Rename isInnerBlockSelected to isDescendentBlockSelected to reflect it does a deep check * Mobile - BlockList - BlockInvalidWarning: Update test to use setupCoreBlocks helper * Mobile - BlockList - BlockInvalidWarning: Update test to remove Act comment and place the rest under the Assert section * Mobile - Preformatted block - Update global styles color logic since the structure now will be always available except that then values would be undefined for non block-based themes * Mobile - Update Changelog
- Loading branch information
923761a
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 923761a.
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/4937690219
📝 Reported issues:
/test/e2e/specs/editor/plugins/custom-post-types.spec.js