Skip to content

Commit e59fd2e

Browse files
committed
test(example): cut the visual regression PoC back to PoC scope
Three review rounds turned the reproduction script into a 1,200-line runner and the evidence folder into 29,000 lines of accessibility-tree dumps. Neither is what a proof of concept needs. This commit keeps: - the results (README), the pinned environment, the four baselines and the two test ids; - the diff JSON every table is computed from, the diff images, and the 19 agent-device issues with their evidence; - two small excerpts replacing the full accessibility-tree snapshots, each saying how to regenerate the full tree; - hand-run CLI commands to reproduce, instead of a script. Removed from this PR: run.mjs, run.test.mjs, evidence/summarize.mjs and summary.md, evidence/runs, evidence/runner, the full evidence/a11y trees, and the example/package.json test script. All of it is preserved unchanged on branch poc/agent-device-visual-runner, and the README lists what a real runner would have to handle, learned from it.
1 parent e9245dc commit e59fd2e

83 files changed

Lines changed: 242 additions & 31515 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎example/package.json‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
"eas-build-pre-install": "cd .. && yarn",
99
"start": "EXPO_NO_TYPESCRIPT_SETUP=1 expo start --dev-client",
1010
"android": "EXPO_NO_TYPESCRIPT_SETUP=1 expo run:android",
11-
"ios": "EXPO_NO_TYPESCRIPT_SETUP=1 expo run:ios",
12-
"test:visual": "node --test visual/run.test.mjs"
11+
"ios": "EXPO_NO_TYPESCRIPT_SETUP=1 expo run:ios"
1312
},
1413
"dependencies": {
1514
"@expo/metro-config": "~56.0.0",

‎example/visual/README.md‎

Lines changed: 82 additions & 220 deletions
Large diffs are not rendered by default.
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
"about": "Excerpts from the XCUITest / UiAutomator trees captured 2026-09-10 with `npx agent-device@0.21.0 snapshot --raw --force-full --json`. The full trees (13,500 lines) are on branch poc/agent-device-visual-runner under example/visual/evidence/a11y/. Test id at the time: surface-elevated (renamed surface-example-elevated later; the rename changes no pixel).",
3+
"ios": {
4+
"with_accessible": {
5+
"total_nodes": 115,
6+
"elevation_labelled_nodes": 2,
7+
"surface_section_node": [
8+
{
9+
"type": "Other",
10+
"role": "RCTViewComponentView",
11+
"identifier": "surface-elevated",
12+
"label": "Elevated surface, Elevation 0, Elevation 1, Elevation 2, Elevation 3, Elevation 4, Elevation 5, Vertical scroll bar, 3 pages",
13+
"rect": {
14+
"x": 0,
15+
"y": 134,
16+
"width": 402,
17+
"height": 214
18+
}
19+
}
20+
]
21+
},
22+
"testID_only": {
23+
"total_nodes": 177,
24+
"elevation_labelled_nodes": 26,
25+
"surface_section_node": [
26+
{
27+
"type": "Other",
28+
"role": "RCTViewComponentView",
29+
"identifier": "surface-elevated",
30+
"rect": {
31+
"x": 0,
32+
"y": 134,
33+
"width": 402,
34+
"height": 214
35+
}
36+
}
37+
]
38+
}
39+
},
40+
"android": {
41+
"with_accessible": {
42+
"total_nodes": 217,
43+
"elevation_labelled_nodes": 13,
44+
"surface_section_node": [
45+
{
46+
"type": "android.view.ViewGroup",
47+
"identifier": "surface-elevated",
48+
"rect": {
49+
"x": 0,
50+
"y": 372,
51+
"width": 1280,
52+
"height": 642
53+
}
54+
}
55+
]
56+
},
57+
"testID_only": {
58+
"total_nodes": 217,
59+
"elevation_labelled_nodes": 13,
60+
"surface_section_node": [
61+
{
62+
"type": "android.view.ViewGroup",
63+
"identifier": "surface-elevated",
64+
"rect": {
65+
"x": 0,
66+
"y": 372,
67+
"width": 1280,
68+
"height": 642
69+
}
70+
}
71+
]
72+
}
73+
}
74+
}

0 commit comments

Comments
 (0)