Skip to content

Commit

Permalink
Update API
Browse files Browse the repository at this point in the history
  • Loading branch information
Kai Song authored and Kai Song committed Dec 12, 2024
1 parent 0cff59b commit b043a5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions IdentityCore/tests/automation/ui_tests_lib/MSIDBaseUITest.m
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ - (void)enterPassword:(NSString *)password app:(XCUIApplication *)application is
XCUIElement *passwordSecureTextField = [application.secureTextFields elementBoundByIndex:0];
// This is explicitly to check the new screen where to ask user to signin with the following 2 options. This caused several automation failures

XCTWaiterResult result = [self waitForElementsAndContinue:passwordSecureTextField];
XCTWaiterResult result = [self waitForElementsAndContinueIfNotAppear:passwordSecureTextField];
if (result == XCTWaiterResultCompleted)
{
[self tapElementAndWaitForKeyboardToAppear:passwordSecureTextField app:application];
Expand All @@ -327,7 +327,7 @@ - (void)enterPassword:(NSString *)password app:(XCUIApplication *)application is
// 1. Use my password
// 2. Sign in to an orgnization
XCUIElement *useMyPasswordButton = application.buttons[@"Use my password"];
result = [self waitForElementsAndContinue:useMyPasswordButton];
result = [self waitForElementsAndContinueIfNotAppear:useMyPasswordButton];
if (result == XCTWaiterResultCompleted)
{
[useMyPasswordButton tap];
Expand Down

0 comments on commit b043a5f

Please sign in to comment.