Commit f42d2f3
test(e2e): Scroll TurboModule attribute block into view on Android
The `turbo_module.*` attribute block is the last content in a long
ScrollView, so on the shorter Android emulator screen it renders below
the fold. `assertVisible` only inspects the current viewport, so the
`turbo_module.total_call_count: 6` assertion has failed on every Android
REV2 run since #6549 introduced the test, while iOS (taller screen, block
in view) has been green — proving the SDK and on-device render are correct.
Scroll the block into view before asserting, and match the full line with
a regex (Maestro anchors `assertVisible` text to the whole node, so a bare
`total_call_count:` prefix would not match `... : 6`). The exact on-screen
count is intentionally not pinned — it can race the async `getPlatform`
record settling against the synchronous post-`end()` read; the authoritative
counts are asserted against the transaction envelope in
turboModuleSpanAttributes.test.ts.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent e8007a7 commit f42d2f3
1 file changed
Lines changed: 24 additions & 2 deletions
Lines changed: 24 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
37 | 59 | | |
38 | 60 | | |
39 | 61 | | |
| |||
0 commit comments