Skip to content

Commit 5f93bed

Browse files
cortinicometa-codesync[bot]
authored andcommitted
Add Image visual regression tests (#59341)
Summary: Pull Request resolved: #59341 Add a Maestro visual suite for `Image` using existing RNTester examples. Capture stable cropped checkpoints after opening each example and settling animations. See `packages/rn-tester/visual-tests/suites/image.md` for the example and checkpoint inventory. Changelog: [Internal] Reviewed By: Abbondanzo Differential Revision: D126723204
1 parent 23258a8 commit 5f93bed

2 files changed

Lines changed: 44 additions & 0 deletions

File tree

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
appId: ${APP_ID}
2+
---
3+
- runFlow:
4+
file: ../helpers/open-example.yml
5+
env:
6+
EXAMPLE_URL: rntester://example/ImageExample/static-image
7+
- extendedWaitUntil:
8+
visible:
9+
id: 'image-static'
10+
timeout: 15000
11+
- waitForAnimationToEnd:
12+
timeout: 5000
13+
- takeScreenshot:
14+
path: ${VISUAL_OUTPUT_DIR}/image/static-image/default
15+
cropOn:
16+
id: 'image-static'
17+
- runFlow:
18+
when:
19+
platform: iOS
20+
commands:
21+
- runFlow:
22+
file: ../helpers/open-example.yml
23+
env:
24+
EXAMPLE_URL: rntester://example/ImageExample/base64-image
25+
- extendedWaitUntil:
26+
visible:
27+
id: 'image-base64'
28+
timeout: 15000
29+
- waitForAnimationToEnd:
30+
timeout: 5000
31+
- takeScreenshot:
32+
path: ${VISUAL_OUTPUT_DIR}/image/base64/default
33+
cropOn:
34+
id: 'image-base64'
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Image visual tests
2+
3+
| Example | Checkpoints |
4+
| --- | --- |
5+
| `static-image` | Initial rendering |
6+
| `base64-image` | Initial rendering (iOS example) |
7+
8+
Screenshots use the existing RNTester example crops. Each example starts from a fresh app launch; captures wait for the target and for animations to settle.
9+
10+
These cases use bundled or inline images so captures do not depend on network downloads.

0 commit comments

Comments
 (0)