From 6902b80ab68dab3c07e40a48816dc42fc6c17ce1 Mon Sep 17 00:00:00 2001 From: Bi11 Date: Sun, 8 Jan 2017 15:23:26 +0800 Subject: [PATCH] Fix UITests multiple matches issue introduced in touch bar --- Sparkle/SUStatus.xib | 2 +- UITests/SUTestApplicationTest.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sparkle/SUStatus.xib b/Sparkle/SUStatus.xib index d225d6c2..cb6a8084 100644 --- a/Sparkle/SUStatus.xib +++ b/Sparkle/SUStatus.xib @@ -16,7 +16,7 @@ - + diff --git a/UITests/SUTestApplicationTest.swift b/UITests/SUTestApplicationTest.swift index 7074953b..7f360a20 100644 --- a/UITests/SUTestApplicationTest.swift +++ b/UITests/SUTestApplicationTest.swift @@ -89,7 +89,7 @@ class SUTestApplicationTest: XCTestCase app.dialogs["SUUpdateAlert"].staticTexts["Software Update"].click() app.dialogs["SUUpdateAlert"].buttons["Install Update"].click() - app.buttons["Install and Relaunch"].click() + app.windows["SUStatus"].buttons["Install and Relaunch"].click() // Wait for the new updated app to finish launching so we can test if it's the frontmost app sleep(3)