Skip to content

Commit 7fcbe73

Browse files
committed
Restore old B2C local log in behavior
1 parent 37ef83a commit 7fcbe73

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

msal4j-sdk/src/integrationtest/java/com.microsoft.aad.msal4j/TestConstants.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public class TestConstants {
3232
public static final String B2C_READ_SCOPE = "https://msidlabb2c.onmicrosoft.com/msidlabb2capi/read";
3333
public static final String B2C_MICROSOFTLOGIN_AUTHORITY = "https://msidlabb2c.b2clogin.com/tfp/msidlabb2c.onmicrosoft.com/";
3434
public static final String B2C_MICROSOFTLOGIN_ROPC = B2C_MICROSOFTLOGIN_AUTHORITY + B2C_ROPC_POLICY;
35+
public static final String B2C_UPN = "b2clocal@msidlabb2c.onmicrosoft.com";
3536

3637
public static final String LOCALHOST = "http://localhost:";
3738

msal4j-sdk/src/integrationtest/java/infrastructure/pageobjects/B2CLocalLoginPage.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
package infrastructure.pageobjects;
55

6+
import com.microsoft.aad.msal4j.TestConstants;
67
import org.openqa.selenium.By;
78
import org.openqa.selenium.WebDriver;
89
import org.openqa.selenium.support.ui.ExpectedConditions;
@@ -55,9 +56,9 @@ public B2CLocalLoginPage clickLocalAccount() {
5556
* @return This page object for method chaining
5657
*/
5758
public B2CLocalLoginPage enterUsername(String username) {
58-
LOG.info("Entering username: {}", username);
59+
LOG.info("Entering username: {}", TestConstants.B2C_UPN);
5960
wait.until(ExpectedConditions.elementToBeClickable(USERNAME_INPUT))
60-
.sendKeys(username);
61+
.sendKeys(TestConstants.B2C_UPN);
6162
return this;
6263
}
6364

0 commit comments

Comments
 (0)