From 67199877a20c3812c358e79b7da5d69f160bef3d Mon Sep 17 00:00:00 2001 From: Gronod Date: Sat, 12 Sep 2026 13:30:04 +0100 Subject: [PATCH] test(m9): fall back to coordinate click for per-page print button (#132) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Explicit stage-2 scrolls are synthesized but never move the LazyVGrid cell's a11y frame (run 32235). If still not hittable, dump the a11y tree and click the reported point directly — the lp argv assertion verifies the click landed. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- Tests/ICCeryUITests/Milestone3UITests.swift | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Tests/ICCeryUITests/Milestone3UITests.swift b/Tests/ICCeryUITests/Milestone3UITests.swift index cf70a92..b95584b 100644 --- a/Tests/ICCeryUITests/Milestone3UITests.swift +++ b/Tests/ICCeryUITests/Milestone3UITests.swift @@ -208,8 +208,16 @@ final class Milestone3UITests: XCTestCase { stage2.scroll(byDeltaX: 0, deltaY: -1) RunLoop.current.run(until: Date().addingTimeInterval(0.2)) } - XCTAssertTrue(printPage.isHittable) - printPage.click() + if printPage.isHittable { + printPage.click() + } else { + // LazyVGrid cells can report a stale a11y frame — click the + // point directly; the lp argv assert below still verifies. + print("AXTREE-BEGIN frame=\(printPage.frame)\n" + + "\(app.debugDescription)\nAXTREE-END") + printPage.coordinate(withNormalizedOffset: + CGVector(dx: 0.5, dy: 0.5)).click() + } let argv = waitForLpLine() XCTAssertTrue(argv.contains("AP_ColorMatchingMode"), argv) XCTAssertTrue(argv.contains("page1.tif"), argv) -- 2.39.5