File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed
MSAL/test/automation/tests Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 63
63
64
64
- (NSDictionary *)configWithTestRequest : (MSIDAutomationTestRequest *)request ;
65
65
66
+ - (void )acceptConsentIfNecessary : (XCUIElement *)elementToCheck
67
+ consentButton : (NSString *)consentButton
68
+ embeddedWebView : (BOOL )embeddedWebView ;
69
+
66
70
@end
Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ - (void)acceptNotificationsSystemDialog
147
147
148
148
- (void )acceptAuthSessionDialogIfNecessary : (MSIDAutomationTestRequest *)request
149
149
{
150
- if (request.webViewType == MSALWebviewTypeDefault
150
+ if (request.webViewType == MSIDWebviewTypeDefault
151
151
&& !request.usesEmbeddedWebView )
152
152
{
153
153
[self acceptAuthSessionDialog ];
Original file line number Diff line number Diff line change 27
27
28
28
#import " MSALBaseAADUITest.h"
29
29
#import " XCUIElement+CrossPlat.h"
30
+ #import " MSALBaseUITest.h"
30
31
31
32
@interface MSALB2CInteractiveTests : MSALBaseAADUITest
32
33
@@ -93,6 +94,11 @@ - (NSString *)runSharedB2CMSALoginWithRequest:(MSIDAutomationTestRequest *)reque
93
94
{
94
95
[self aadEnterEmail: self .testApp];
95
96
}
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 ];
96
102
97
103
if (shouldEnterPassword) [self aadEnterPassword: self .testApp];;
98
104
You can’t perform that action at this time.
0 commit comments