Skip to content

Commit

Permalink
Increase waiting time
Browse files Browse the repository at this point in the history
  • Loading branch information
Kai Song committed Dec 12, 2024
1 parent e6ba073 commit 0cff59b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions IdentityCore/tests/automation/ui_tests_lib/MSIDBaseUITest.m
Original file line number Diff line number Diff line change
Expand Up @@ -494,12 +494,12 @@ - (XCUIElement *)waitForEitherElements:(XCUIElement *)object1 and:(XCUIElement *
return object1.exists ? object1 : object2;
}

- (XCTWaiterResult)waitForElementsAndContinue:(XCUIElement *)object
- (XCTWaiterResult)waitForElementsAndContinueIfNotAppear:(XCUIElement *)object
{
NSPredicate *existsPredicate = [NSPredicate predicateWithFormat:@"%@.exists == 1" argumentArray:@[object]];

XCTestExpectation *expectation = [[XCTNSPredicateExpectation alloc] initWithPredicate:existsPredicate object:object];//[self expectationForPredicate:existsPredicate evaluatedWithObject:nil handler:nil];
return [XCTWaiter waitForExpectations:@[expectation] timeout:10.0f enforceOrder:YES];
XCTestExpectation *expectation = [[XCTNSPredicateExpectation alloc] initWithPredicate:existsPredicate object:object];
return [XCTWaiter waitForExpectations:@[expectation] timeout:30.0f enforceOrder:YES];
}

- (void)tapElementAndWaitForKeyboardToAppear:(XCUIElement *)element
Expand Down

0 comments on commit 0cff59b

Please sign in to comment.