XCUIApplication.launch() fails to activate the app on headless CI runners, reporting "Failed to activate application (current state: Running Background)". With continueAfterFailure=false, this kills the test before ensureForegroundAfterLaunch can retry. Fix by temporarily setting continueAfterFailure=true around launch(), then retrying activation via app.activate(). Also add a retry loop in the CI workflow since foreground activation is inherently flaky on headless runners. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| ISSUE_TEMPLATE | ||
| workflows | ||
| pull_request_template.md | ||