Missing test (#4537)
This commit is contained in:
parent
730a2f7946
commit
698483ee17
1 changed files with 11 additions and 0 deletions
|
@ -207,6 +207,17 @@ public class AccountFormServiceTest extends AbstractTestRealmKeycloakTest {
|
|||
events.clear();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void referrerEscaped() {
|
||||
profilePage.open();
|
||||
loginPage.login("test-user@localhost", "password");
|
||||
|
||||
driver.navigate().to(profilePage.getPath() + "?referrer=test-app&referrer_uri=http://localhost:8180/auth/realms/master/app/auth/test%2Ffkrenu%22%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E");
|
||||
Assert.assertTrue(profilePage.isCurrent());
|
||||
|
||||
Assert.assertFalse(driver.getPageSource().contains("<script>alert"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void changePassword() {
|
||||
changePasswordPage.open();
|
||||
|
|
Loading…
Reference in a new issue