Wait for background javascript after SAML 2.0 Logout

This commit is contained in:
Marcus Da Coregio 2022-09-19 08:47:46 -03:00
parent 26b20435c7
commit 738463be8c
4 changed files with 4 additions and 0 deletions

View File

@ -81,6 +81,7 @@ public class Saml2JavaConfigurationITests {
HtmlPage home = (HtmlPage) this.webClient.getCurrentWindow().getEnclosedPage();
HtmlElement rpLogoutButton = home.getHtmlElementById("rp_logout_button");
HtmlPage loginPage = rpLogoutButton.click();
this.webClient.waitForBackgroundJavaScript(10000);
assertThat(loginPage.getUrl().getFile()).isEqualTo("/login?logout");
}

View File

@ -62,6 +62,7 @@ public class Saml2LoginApplicationITests {
HtmlPage home = (HtmlPage) this.webClient.getCurrentWindow().getEnclosedPage();
HtmlElement rpLogoutButton = home.getHtmlElementById("rp_logout_button");
HtmlPage loginPage = rpLogoutButton.click();
this.webClient.waitForBackgroundJavaScript(10000);
assertThat(loginPage.getUrl().getFile()).isEqualTo("/login?logout");
}

View File

@ -62,6 +62,7 @@ public class Saml2LoginApplicationITests {
HtmlPage home = (HtmlPage) this.webClient.getCurrentWindow().getEnclosedPage();
HtmlElement rpLogoutButton = home.getHtmlElementById("rp_logout_button");
HtmlPage loginPage = rpLogoutButton.click();
this.webClient.waitForBackgroundJavaScript(10000);
assertThat(loginPage.getUrl().getFile()).isEqualTo("/login?logout");
}

View File

@ -79,6 +79,7 @@ public class Saml2XmlITests {
HtmlPage home = (HtmlPage) this.webClient.getCurrentWindow().getEnclosedPage();
HtmlElement rpLogoutButton = home.getHtmlElementById("rp_logout_button");
HtmlPage loginPage = rpLogoutButton.click();
this.webClient.waitForBackgroundJavaScript(10000);
assertThat(loginPage.getUrl().getFile()).isEqualTo("/login?logout");
}