File tree Expand file tree Collapse file tree
msal4j-sdk/src/integrationtest/java
infrastructure/pageobjects Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 33
44package infrastructure .pageobjects ;
55
6+ import com .microsoft .aad .msal4j .TestConstants ;
67import org .openqa .selenium .By ;
78import org .openqa .selenium .WebDriver ;
89import 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
You can’t perform that action at this time.
0 commit comments