Skip to content

Commit 1eadec4

Browse files
committed
UY-1546: stabilize selenium tests after bumping vaadin version to 24.4
1 parent 71c40df commit 1eadec4

5 files changed

Lines changed: 5 additions & 0 deletions

File tree

integration-tests/src/test/java/pl/edu/icm/unity/test/headlessui/TestAttributeIntrospectionEndpoint.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public void attributeIntrospectionTest()
1919
waitForElement(By.className("u-idpAuthentication-saml-7")).click();
2020

2121
//saml login
22+
waitForPageLoadByURL("/saml-idp/authentication");
2223
waitForElement(By.className("u-passwordUsernameField")).sendKeys("demo-user");
2324
waitForElement(By.className("u-passwordField")).sendKeys("the!test12");
2425
waitForElement(By.className("u-passwordSignInButton")).click();

integration-tests/src/test/java/pl/edu/icm/unity/test/headlessui/TestBasic.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public class TestBasic extends SeleniumTestBase
2222
public void loginTest()
2323
{
2424
driver.get(baseUrl + "/home");
25+
waitForPageLoadByURL("/home/authentication");
2526
waitForPageLoad(By.className("u-passwordSignInButton"));
2627

2728
Cookie sessionBefore = driver.manage().getCookieNamed("JSESSIONID");

integration-tests/src/test/java/pl/edu/icm/unity/test/headlessui/TestOAuthAuthnViaLocalUnity.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public class TestOAuthAuthnViaLocalUnity extends SeleniumTestBase
2323
public void testLoginWithDynamicAttributeOnConsentScreen()
2424
{
2525
driver.get(baseUrl + "/home");
26+
waitForPageLoadByURL("/home/authentication");
2627
waitForPageLoad(By.className("u-idpAuthentication-oauth-local")).click();
2728

2829
waitForPageLoadByURL("/oauth2-as/authentication");

integration-tests/src/test/java/pl/edu/icm/unity/test/headlessui/reg/TestAccountAssociation.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public void accountAssociationTest() throws Exception
2222
{
2323
//login to home UI
2424
driver.get(baseUrl + "/home");
25+
waitForPageLoadByURL("/home/authentication");
2526
waitForElement(By.className("u-passwordUsernameField")).sendKeys("demo-user2");
2627
waitForElement(By.className("u-passwordField")).sendKeys("the!test2");
2728
waitForElement(By.className("u-passwordSignInButton")).click();

integration-tests/src/test/java/pl/edu/icm/unity/test/headlessui/reg/TestRegistrationForm.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public class TestRegistrationForm extends SeleniumTestBase
1919
public void registrationTest()
2020
{
2121
driver.get(baseUrl + "/home2");
22+
waitForPageLoadByURL("/home2/authentication");
2223
waitForPageLoad(By.className("u-idpAuthentication-saml-single-5")).click();
2324

2425
waitForPageLoadByURL("/saml-idp/authentication");

0 commit comments

Comments
 (0)