test(m9): fall back to coordinate click for per-page print button (#132) #134

Merged
gronod merged 1 commits from feat/132-perpage-scroll2 into milestone/m9-monterey 2026-09-12 13:30:19 +01:00
+9 -1
View File
@@ -208,8 +208,16 @@ final class Milestone3UITests: XCTestCase {
stage2.scroll(byDeltaX: 0, deltaY: -1) stage2.scroll(byDeltaX: 0, deltaY: -1)
RunLoop.current.run(until: Date().addingTimeInterval(0.2)) RunLoop.current.run(until: Date().addingTimeInterval(0.2))
} }
XCTAssertTrue(printPage.isHittable) if printPage.isHittable {
printPage.click() 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() let argv = waitForLpLine()
XCTAssertTrue(argv.contains("AP_ColorMatchingMode"), argv) XCTAssertTrue(argv.contains("AP_ColorMatchingMode"), argv)
XCTAssertTrue(argv.contains("page1.tif"), argv) XCTAssertTrue(argv.contains("page1.tif"), argv)