test(ios): retry transient simulator input false-successes - #2869
Open
quanruzhuoxiu wants to merge 3 commits into
Open
test(ios): retry transient simulator input false-successes#2869quanruzhuoxiu wants to merge 3 commits into
quanruzhuoxiu wants to merge 3 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
typeOnlyfirst attempt, replay only observed value mismatches in idempotentreplacemode, submit after the expected value is observed, and keep every attempt's XML in diagnosticsWhy this retry boundary
The same deterministic smoke failed twice on two different GitHub-hosted runners because
/wda/keysreturned successfully while the Safari text field still had novalue. WDA logged both taps at the expected coordinates, and the TodoMVC test passed afterward, so the simulator and Midscene session remained healthy.expected undefined to be 'Midscene iOS input 2026'.This helper does not retry the full test or arbitrary exceptions. Tap/Input failures,
/sourcerequest failures, and a missing target field still fail immediately. Only an observed value mismatch on the existing target field is retried, up to three total attempts.Validation
pnpm install --frozen-lockfile(prepare built all 27 non-doc projects)pnpm run lintpnpm run type-check:testspnpm exec nx test @midscene/ios --output-style=static(13 files, 155 tests passed)AI_TEST_TYPE=iOS MIDSCENE_IOS_SIMULATOR_SMOKE=1 pnpm --filter @midscene/ios exec vitest list tests/ai/ios-simulator-smoke.test.ts