Skip to content

Commit bcb2033

Browse files
authored
Merge pull request #1527 from AzureAD/zeyong/fixAutomation
Fix MSAL Automation
2 parents 8f9bfc7 + 63a3be1 commit bcb2033

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

IdentityCore/tests/automation/ui_tests_lib/MSIDBaseUITest.m

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,18 @@ - (void)enterPassword:(NSString *)password app:(XCUIApplication *)application is
335335
app:application
336336
isMainApp:isMainApp];
337337
}
338+
else
339+
{
340+
useMyPasswordButton = application.buttons[@"Use your password"];
341+
if (useMyPasswordButton.exists)
342+
{
343+
[useMyPasswordButton tap];
344+
[self enterPassword:password
345+
app:application
346+
isMainApp:isMainApp];
347+
}
348+
349+
}
338350
}
339351

340352
}

0 commit comments

Comments
 (0)