diff --git a/src/test/java/org/olat/selenium/UserTest.java b/src/test/java/org/olat/selenium/UserTest.java index 5403933e349e503e87b71c24cae12b3569f639fd..d11e894efe5c874c31e2c62ae87143eadedc10f4 100644 --- a/src/test/java/org/olat/selenium/UserTest.java +++ b/src/test/java/org/olat/selenium/UserTest.java @@ -583,7 +583,8 @@ public class UserTest { .next() // -> preview .assertGreen(1) .assertWarn(1) - .changePassword() + .updatePasswords() + .updateUsers() .next() // -> groups .next() // -> emails .finish(); diff --git a/src/test/java/org/olat/selenium/page/user/ImportUserPage.java b/src/test/java/org/olat/selenium/page/user/ImportUserPage.java index e4b99bfa2bca9081798ebaf531b8c9c5c67eebf1..7c63845e53d50869dddf095b8fb5b3089fd512d6 100644 --- a/src/test/java/org/olat/selenium/page/user/ImportUserPage.java +++ b/src/test/java/org/olat/selenium/page/user/ImportUserPage.java @@ -27,6 +27,7 @@ import org.olat.user.restapi.UserVO; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; +import org.openqa.selenium.support.ui.Select; /** * @@ -56,9 +57,26 @@ public class ImportUserPage { return this; } - public ImportUserPage changePassword() { - By updatePassword = By.cssSelector("input[name='update.password'][type='checkbox']"); - browser.findElement(updatePassword).click(); + /** + * In the first mandatory option, select the update password one. + * @return + */ + public ImportUserPage updatePasswords() { + By updatePassword = By.id("o_fioupdate_password_SELBOX"); + Select passwordDropdown = new Select(browser.findElement(updatePassword)); + passwordDropdown.selectByValue("update"); + OOGraphene.waitBusy(browser); + return this; + } + + /** + * In the second mandatory option, select the update existing user one. + * @return + */ + public ImportUserPage updateUsers() { + By updatePassword = By.id("o_fioupdate_user_SELBOX"); + Select passwordDropdown = new Select(browser.findElement(updatePassword)); + passwordDropdown.selectByValue("update"); OOGraphene.waitBusy(browser); return this; }