test(m4): wait for Start Read enabled before chartread (CI 35251/35293) #173

Merged
gronod merged 1 commits from fix/m4-handheld-start-read into develop 2026-09-14 16:16:37 +01:00
Owner

Why

Run 35251 and 35293 failed Milestone4UITests.testHandheldFixtureChartreadAndAverage.

The AX dump after the Start click was still idle Stage 3 (chartreadPrompt = Press Start to begin, btnStartRead still present, no btnCalibrate). XCTest clicked Start as soon as it existed; the control is .disabled(!canStartRead), so that click is a no-op.

The follow-up diagnostic then read chartreadLastError.label even when that caption is not in the tree, which is the snapshot error in the log.

The sibling testTwoPassAverageFailurePromotesFirstPass already uses driveOnePass, which waits for isEnabled, and passed in the same runs.

Change

Use driveOnePass(startButton: "btnStartRead") for the handheld average test.

## Why [Run 35251](https://git.i3omb.com/gronod/iccery-v2-mac/actions/runs/35251) and [35293](https://git.i3omb.com/gronod/iccery-v2-mac/actions/runs/35293) failed `Milestone4UITests.testHandheldFixtureChartreadAndAverage`. The AX dump after the Start click was still idle Stage 3 (`chartreadPrompt` = Press Start to begin, `btnStartRead` still present, no `btnCalibrate`). XCTest clicked Start as soon as it *existed*; the control is `.disabled(!canStartRead)`, so that click is a no-op. The follow-up diagnostic then read `chartreadLastError.label` even when that caption is not in the tree, which is the snapshot error in the log. The sibling `testTwoPassAverageFailurePromotesFirstPass` already uses `driveOnePass`, which waits for `isEnabled`, and passed in the same runs. ## Change Use `driveOnePass(startButton: "btnStartRead")` for the handheld average test.
gronod added 1 commit 2026-09-14 16:16:31 +01:00
test(m4): wait for Start Read to be enabled before clicking
macOS CI / build-and-test (push) Skipped
macOS CI / build-and-test (pull_request) Canceled after 0s
macOS CI / package (pull_request) Canceled after 0s
9dfa79ebd0
Runs 35251 and 35293 left Stage 3 idle because XCTest clicked a
disabled Start Read. driveOnePass already waits for isEnabled;
the handheld average test now uses it.
gronod merged commit 18f1d1ff33 into develop 2026-09-14 16:16:37 +01:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: gronod/iccery-v2-mac#173