11 self.continueAfterFailure = NO;
14 self.application.launchArguments = @[ @"--tap-status-bar" ];
15 [
self.application launch];
18- (void)testTapStatusBar {
19 XCUIElement* textField =
self.application.textFields[@"handleScrollToTop"];
20 BOOL exists = [textField waitForExistenceWithTimeout:1];
21 XCTAssertFalse(exists,
@"");
23 XCUIApplication* systemApp =
24 [[XCUIApplication alloc] initWithBundleIdentifier:@"com.apple.springboard"];
25 XCUIElement* statusBar = [systemApp.statusBars firstMatch];
26 if (statusBar.isHittable) {
29 XCUICoordinate* coordinates = [statusBar coordinateWithNormalizedOffset:CGVectorMake(0, 0)];
32 exists = [textField waitForExistenceWithTimeout:1];
33 XCTAssertTrue(exists,
@"");
XCUIApplication * application