Commit 293598f
committed
fix(ci): force-stop app between warmup and per-flow loop
Android gate run 26303048981 failed on the first flow's launchApp with:
Launch app "com.clerk.clerkexpoquickstart" with clear state... FAILED
The 8s-later second flow's launchApp clearState succeeded. Root cause:
after the warmup completes, the app is still foregrounded; clearState
under the hood is `pm clear` (Android) / simctl clear (iOS), which
silently fails when the package is in use. Subsequent flows work
because Maestro's session teardown stops the app between invocations.
Bridge that gap explicitly — force-stop the app between warmup and
the per-flow loop on both platforms (adb am force-stop on Android,
xcrun simctl terminate on iOS). Both are no-ops if the app is already
stopped.1 parent 6f80b6f commit 293598f
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
582 | 582 | | |
583 | 583 | | |
584 | 584 | | |
| 585 | + | |
585 | 586 | | |
586 | 587 | | |
587 | 588 | | |
| |||
972 | 973 | | |
973 | 974 | | |
974 | 975 | | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
975 | 982 | | |
976 | 983 | | |
977 | 984 | | |
| |||
0 commit comments