Fix test user for SAML samples

Closes gh-124
This commit is contained in:
Marcus Da Coregio
2023-03-08 14:43:42 -03:00
parent d080723f5e
commit 8796e1600e
10 changed files with 16 additions and 16 deletions

View File

@@ -59,7 +59,7 @@ public class CustomUrlsApplicationITests {
void authenticationAttemptWhenValidThenShowsUserEmailAddress() throws Exception {
performLogin();
HtmlPage home = (HtmlPage) this.webClient.getCurrentWindow().getEnclosedPage();
assertThat(home.asNormalizedText()).contains("You're email address is testuser@spring.security.saml");
assertThat(home.asNormalizedText()).contains("You're email address is testuser2@spring.security.saml");
}
@Test
@@ -88,7 +88,7 @@ public class CustomUrlsApplicationITests {
HtmlInput username = form.getInputByName("username");
HtmlPasswordInput password = form.getInputByName("password");
HtmlSubmitInput submit = login.getHtmlElementById("okta-signin-submit");
username.type("testuser@spring.security.saml");
username.type("testuser2@spring.security.saml");
password.type("12345678");
submit.click();
this.webClient.waitForBackgroundJavaScript(10000);