From da10296d33d7571751a29a35126e282c7abf04be Mon Sep 17 00:00:00 2001 From: Ngo Quoc Dat Date: Wed, 14 Oct 2026 17:40:05 +0700 Subject: [PATCH] test: click the import result's OK on its sheet, not the Touch Bar --- TableProUITests/ConnectionImportReviewUITests.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/TableProUITests/ConnectionImportReviewUITests.swift b/TableProUITests/ConnectionImportReviewUITests.swift index 262166eb1b..3653a8fbdf 100644 --- a/TableProUITests/ConnectionImportReviewUITests.swift +++ b/TableProUITests/ConnectionImportReviewUITests.swift @@ -76,7 +76,10 @@ final class ConnectionImportReviewUITests: UITestCase { message.waitToExist(timeout: 15), "The result must count the connection and only the query still checked" ) - app.buttons["OK"].firstMatch.click() + // The alert is a sheet on the welcome window; an app-wide query also matches its Touch Bar copy. + let ok = welcome.sheets.buttons["OK"].firstMatch + XCTAssertTrue(waitUntilHittable(ok, timeout: 5), "The result alert must offer OK") + ok.click() let list = welcomeConnectionList(in: welcome) XCTAssertTrue(