From caeafb22be02f74169eaa9f48ede08bf0e73a1e4 Mon Sep 17 00:00:00 2001 From: Gronod Date: Sat, 12 Sep 2026 12:30:44 +0100 Subject: [PATCH] test(m9): dump a11y hierarchy to log on UI probe failure (#128) The probe fails on the runner with an apparently empty accessibility tree; the xcresult artifact is not retrievable via the API. Print app.debugDescription + window count so the tree lands in the job log. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- Tests/ICCeryUITests/AboutHelpUITests.swift | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Tests/ICCeryUITests/AboutHelpUITests.swift b/Tests/ICCeryUITests/AboutHelpUITests.swift index f928b6e..2a6ba18 100644 --- a/Tests/ICCeryUITests/AboutHelpUITests.swift +++ b/Tests/ICCeryUITests/AboutHelpUITests.swift @@ -46,7 +46,12 @@ final class AboutHelpUITests: XCTestCase { launchApp() let openAbout = app.buttons["openAboutBtn"] - XCTAssertTrue(openAbout.waitForExistence(timeout: 10)) + if !openAbout.waitForExistence(timeout: 10) { + // CI triage (#128): print the a11y tree so an empty or + // unexpected hierarchy shows up directly in the job log. + print("AXTREE-BEGIN windows=\(app.windows.count)\n\(app.debugDescription)\nAXTREE-END") + } + XCTAssertTrue(openAbout.exists) openAbout.click() _ = waitFor("aboutVersion", timeout: 10) -- 2.39.5