From 6a73719b374df7ed62949de5730b7a9594f52dcc Mon Sep 17 00:00:00 2001 From: Nitya Baddam Date: Thu, 29 Oct 2026 15:09:20 -0700 Subject: [PATCH 1/2] fix: drop postResult withTags ahead of its removal withTags was deprecated in axe-devtools-ios 4.2.0 and is removed in the next release, so the targeted-scan example would stop compiling on that bump. --- .../TargetedScan/TargetedScanUITests.swift | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/axe-devtools-ios-sample-appUITests/TargetedScan/TargetedScanUITests.swift b/axe-devtools-ios-sample-appUITests/TargetedScan/TargetedScanUITests.swift index dadb40c..fef544b 100644 --- a/axe-devtools-ios-sample-appUITests/TargetedScan/TargetedScanUITests.swift +++ b/axe-devtools-ios-sample-appUITests/TargetedScan/TargetedScanUITests.swift @@ -58,7 +58,7 @@ final class TargetedScanUITests: XCTestCase { } /// Scans a couple of screens and uploads each result to DevHub, showing the - /// common reporting options: a custom scan name and tags. + /// common reporting option: a custom scan name. func testScanAndUploadToDevHub() throws { let axe = try XCTUnwrap(axe, "axe DevTools didn't start — did you add your API key to Login.swift?") @@ -66,8 +66,7 @@ final class TargetedScanUITests: XCTestCase { try axe.postResult(try axe.run(onElement: app), withScanName: "Home Tab") app.goToTab("Catalog") - // Tags make a scan easy to find and share on DevHub. - try axe.postResult(try axe.run(onElement: app), withTags: ["smoke", "catalog"], withScanName: "Catalog Tab") + try axe.postResult(try axe.run(onElement: app), withScanName: "Catalog Tab") } /// Demonstrates gating a build on accessibility: fail if any CRITICAL issues are found. From 1b213aa4ce5dc7014785cc8f404fb6e9e18ee50e Mon Sep 17 00:00:00 2001 From: Nitya Baddam Date: Thu, 29 Oct 2026 15:12:24 -0700 Subject: [PATCH 2/2] fix: navigate AutoScan journey by tab title The recorded image taps no longer match on iOS 18.5, so the AutoScan example failed at its first tab switch. --- .../AutoScan/AutoScanUITests.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/axe-devtools-ios-sample-appUITests/AutoScan/AutoScanUITests.swift b/axe-devtools-ios-sample-appUITests/AutoScan/AutoScanUITests.swift index 04d69c6..46f493b 100644 --- a/axe-devtools-ios-sample-appUITests/AutoScan/AutoScanUITests.swift +++ b/axe-devtools-ios-sample-appUITests/AutoScan/AutoScanUITests.swift @@ -39,15 +39,15 @@ final class AutoScanUITests: XCTestCase { app.otherElements.matching(identifier: "Horizontal scroll bar, 1 page").element(boundBy: 0).swipeUp() // Catalog — browse the categories. - app.images["Category"].firstMatch.tap() + app.goToTab("Catalog") app.scrollViews.firstMatch.swipeUp() // Cart — add an item. - app.images["Bag"].firstMatch.tap() + app.goToTab("Cart") app.buttons.matching(identifier: "+").element(boundBy: 1).tap() // Profile — open and scroll to the help section. - app.images["Menu"].firstMatch.tap() + app.goToTab("Profile") app.cells.containing(.image, identifier: "Info Square").firstMatch.swipeUp() } }