-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use onPlaced for screenshot tests (#433)
This fixes misplaced/drawing issues in screenshot tests (Roborazzi, etc) due to our usage of `onGloballyPositioned`. `onGloballyPositioned` will be called after an entire composition, therefore doesn't work for screenshot tests which only 'run' the content until the first draw. In this instance, we use now `onPlaced` to prime the various internal state.
- Loading branch information
1 parent
1132f7f
commit 9c639ff
Showing
3 changed files
with
44 additions
and
6 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
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