Skip to content

Commit 3ebaa8c

Browse files
authored
Merge pull request #2674 from AzureAD/release/2.3.0
Release/2.3.0
2 parents 83299bc + 0c18dc2 commit 3ebaa8c

File tree

8 files changed

+27
-9
lines changed

8 files changed

+27
-9
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## [2.3.0]
2+
* Fix automation tests (#2673)
3+
14
## [2.2.0]
25
* Make native auth MFA feature more backward compatible (#2645)
36

MSAL.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "MSAL"
3-
s.version = "2.2.0"
3+
s.version = "2.3.0"
44
s.summary = "Microsoft Authentication Library (MSAL) for iOS"
55
s.description = <<-DESC
66
The MSAL library for iOS gives your app the ability to begin using the Microsoft Cloud by supporting Microsoft Azure Active Directory and Microsoft Accounts in a converged experience using industry standard OAuth2 and OpenID Connect. The library also supports Microsoft Azure B2C for those using our hosted identity management service.

MSAL/resources/ios/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>2.2.0</string>
18+
<string>2.3.0</string>
1919
<key>CFBundleVersion</key>
2020
<string>$(CURRENT_PROJECT_VERSION)</string>
2121
<key>NSPrincipalClass</key>

MSAL/resources/mac/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>2.2.0</string>
18+
<string>2.3.0</string>
1919
<key>CFBundleVersion</key>
2020
<string>$(CURRENT_PROJECT_VERSION)</string>
2121
<key>NSHumanReadableCopyright</key>

MSAL/src/MSAL_Internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
//------------------------------------------------------------------------------
2727

2828
#define MSAL_VER_HIGH 2
29-
#define MSAL_VER_LOW 2
29+
#define MSAL_VER_LOW 3
3030
#define MSAL_VER_PATCH 0
3131

3232
#define STR_HELPER(x) #x

MSAL/test/automation/tests/MSALBaseUITest.m

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,12 +175,22 @@ - (void)acceptConsentIfNecessary:(XCUIElement *)elementToCheck
175175

176176
while (i < 20) {
177177
sleep(1);
178-
// If consent button found, tap it and return
178+
// Check if title exists
179179
if (elementToCheck.exists)
180180
{
181181
XCUIElement *button = self.testApp.buttons[consentButton];
182-
[button msidTap];
183-
return;
182+
// If consent button found, tap it and return
183+
if (button.exists)
184+
{
185+
[button msidTap];
186+
return;
187+
}
188+
else
189+
{
190+
// The title is there, but consent button not found. Return and continue.
191+
// Depending on the test, will try with another consent button.
192+
return;
193+
}
184194
}
185195
// If consent button is not there, but system webview is still shown, wait for 1 more second
186196
else if ([self.testApp.buttons[@"URL"] exists] && !embeddedWebView)

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,12 @@ - (NSString *)runSharedB2CMSALoginWithRequest:(MSIDAutomationTestRequest *)reque
9797

9898
// Get pass Verify your email screen and use password to login instead
9999
[self acceptConsentIfNecessary:self.testApp.staticTexts[@"Verify your email"]
100-
consentButton:@"Other ways to sign in"
100+
consentButton:@"Use your password instead"
101+
embeddedWebView:NO];
102+
103+
// Sometimes there is another Verify your email screen, but with a different button title (A/B testing?)
104+
[self acceptConsentIfNecessary:self.testApp.staticTexts[@"Verify your email"]
105+
consentButton:@"Use your password"
101106
embeddedWebView:NO];
102107

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

0 commit comments

Comments
 (0)