Skip to content

Commit 1862e2e

Browse files
committed
fix automation
1 parent 13eccf3 commit 1862e2e

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

MSAL/test/automation/tests/MSALBaseUITest.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,8 @@
6363

6464
- (NSDictionary *)configWithTestRequest:(MSIDAutomationTestRequest *)request;
6565

66+
- (void)acceptConsentIfNecessary:(XCUIElement *)elementToCheck
67+
consentButton:(NSString *)consentButton
68+
embeddedWebView:(BOOL)embeddedWebView;
69+
6670
@end

MSAL/test/automation/tests/MSALBaseiOSUITest.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ - (void)acceptNotificationsSystemDialog
147147

148148
- (void)acceptAuthSessionDialogIfNecessary:(MSIDAutomationTestRequest *)request
149149
{
150-
if (request.webViewType == MSALWebviewTypeDefault
150+
if (request.webViewType == MSIDWebviewTypeDefault
151151
&& !request.usesEmbeddedWebView)
152152
{
153153
[self acceptAuthSessionDialog];

MSAL/test/automation/tests/interactive/MSALB2CInteractiveTests.m

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727

2828
#import "MSALBaseAADUITest.h"
2929
#import "XCUIElement+CrossPlat.h"
30+
#import "MSALBaseUITest.h"
3031

3132
@interface MSALB2CInteractiveTests : MSALBaseAADUITest
3233

@@ -93,6 +94,11 @@ - (NSString *)runSharedB2CMSALoginWithRequest:(MSIDAutomationTestRequest *)reque
9394
{
9495
[self aadEnterEmail:self.testApp];
9596
}
97+
98+
// Get pass Verify your email screen and use password to login instead
99+
[self acceptConsentIfNecessary:self.testApp.staticTexts[@"Verify your email"]
100+
consentButton:@"Other ways to sign in"
101+
embeddedWebView:NO];
96102

97103
if (shouldEnterPassword) [self aadEnterPassword:self.testApp];;
98104

0 commit comments

Comments
 (0)