From 5c8973de735ffcf95b9543ef9e0c957c9837d2f1 Mon Sep 17 00:00:00 2001 From: Gronod Date: Sat, 12 Sep 2026 14:33:26 +0100 Subject: [PATCH] test(m9): query presetSelect as PopUpButton to avoid duplicate match (#137) On the runner SDK the Picker label inherits the control accessibility identifier, so the .any query for presetSelect matches both a StaticText and the PopUpButton and .frame resolution fails. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- Tests/ICCeryUITests/AboutHelpUITests.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Tests/ICCeryUITests/AboutHelpUITests.swift b/Tests/ICCeryUITests/AboutHelpUITests.swift index 4fcd1af..b44cd0d 100644 --- a/Tests/ICCeryUITests/AboutHelpUITests.swift +++ b/Tests/ICCeryUITests/AboutHelpUITests.swift @@ -71,8 +71,10 @@ final class AboutHelpUITests: XCTestCase { // SDK 13.1 emits no AXGroup for the sidebar root, and an // identifier on the container clobbers child identifiers - // (#130) — measure a stable sidebar child instead. - let sidebarChild = app.descendants(matching: .any)["presetSelect"] + // (#130) — measure a stable sidebar child instead. Query the + // pop-up by type: the Picker's "Preset" label inherits the same + // identifier, so an .any query matches twice. + let sidebarChild = app.popUpButtons["presetSelect"] XCTAssertTrue(sidebarChild.waitForExistence(timeout: 10)) let before = sidebarChild.frame -- 2.39.5