Fix UITests multiple matches issue introduced in touch bar

This commit is contained in:
Bi11 committed 2017-01-08 15:23:26 +08:00
1 parent d44a122a21
commit 6902b80ab6
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -16,7 +16,7 @@
</customObject>
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
<customObject id="-3" userLabel="Application"/>
<window title="Set in Code" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" visibleAtLaunch="NO" animationBehavior="default" id="5" userLabel="Window">
<window identifier="SUStatus" title="Set in Code" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" visibleAtLaunch="NO" animationBehavior="default" id="5" userLabel="Window">
<windowStyleMask key="styleMask" titled="YES"/>
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
<rect key="contentRect" x="200" y="222" width="400" height="107"/>
+1 -1
View File
@@ -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)