test(m9): query presetSelect as PopUpButton to avoid duplicate match (#137) #138

Merged
gronod merged 1 commits from feat/137-presetselect-dup into milestone/m9-monterey 2026-09-12 14:33:43 +01:00
+4 -2
View File
@@ -71,8 +71,10 @@ final class AboutHelpUITests: XCTestCase {
// SDK 13.1 emits no AXGroup for the sidebar root, and an // SDK 13.1 emits no AXGroup for the sidebar root, and an
// identifier on the container clobbers child identifiers // identifier on the container clobbers child identifiers
// (#130) measure a stable sidebar child instead. // (#130) measure a stable sidebar child instead. Query the
let sidebarChild = app.descendants(matching: .any)["presetSelect"] // 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)) XCTAssertTrue(sidebarChild.waitForExistence(timeout: 10))
let before = sidebarChild.frame let before = sidebarChild.frame