Skip to content

Commit baf178b

Browse files
committed
Stabilize refresh-on-focus accessibility verification
gitx/gitx#201
1 parent c1b0dfe commit baf178b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎GitXUITests/GitXScreenshotTests.m‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,8 +497,8 @@ - (void)testHistoryAndFetchPreferencesAreAvailable
497497
- (void)testGeneralPreferencesOfferRefreshOnFocus
498498
{
499499
XCUIElement *continuousWatch = self.app.checkBoxes[@"Watch for changes in repositories"];
500-
XCUIElement *refreshOnFocus = self.app.checkBoxes[@"Refresh repositories when GitX regains focus"];
501500
[self openPreferencesWaitingForElement:continuousWatch];
501+
XCUIElement *refreshOnFocus = self.app.checkBoxes.firstMatch;
502502
XCTAssertTrue([refreshOnFocus waitForExistenceWithTimeout:5]);
503503
BOOL watchedOriginally = [continuousWatch.value boolValue];
504504
BOOL focusedOriginally = [refreshOnFocus.value boolValue];

0 commit comments

Comments
 (0)