Repository navigation
Commit 7206dcc
Assert switch state before the toggled visual screenshot (#59413)
Summary:
The custom-colors switch flow takes its `toggled` screenshot without checking the taps landed, so a dropped tap captures the wrong state. That spoiled a baseline on `main` and failed #59390.
This asserts each switch's `checked` state before the screenshot, so a dropped tap fails the flow and it's retried instead.
Changelog: [Internal]
Pull Request resolved: #59413
Test Plan: Ran the section on the iOS 26 visual simulator: passes as written, and fails when asserting the wrong state. Android runs in this PR's CI.
Reviewed By: cipolleschi
Differential Revision: D127577122
Pulled By: cortinico
fbshipit-source-id: 59bed882d9f1f7cdb553c170e2d897fc39f22e411 parent f76f251 commit 7206dcc
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
83 | 89 | | |
84 | 90 | | |
85 | 91 | | |
| |||
0 commit comments