-
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.
test: Expand E2E test utilities (#59214)
* test: Add Gallery block with two images test fixture Simplify rendering a smaller Gallery block. * test: Add `selectBlockByType` utility Simplify selecting a block via tapping it. * test: `selectBlockByType` allows offsetting tap position Some blocks contain nested pressables that need to be avoided for certain test cases. * test: Add Media & Text block name fixture * test: Add Quote block name fixture * test: `selectBlockByType` allows computed offset Allowing composing offsets based upon the block dimensions, making it easier to target, e.g., the top-left corner. * test: Repurpose `selectBlockByType` to `selectBlock` Restructure the utility to reuse the existing `getBlockAtPosition` utility, encouraging composition of utilities rather than duplication. Co-authored-by: dcalhoun <[email protected]> Co-authored-by: geriux <[email protected]>
- Loading branch information
1 parent
a4fdeb2
commit a5721d9
Showing
2 changed files
with
42 additions
and
0 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