diff --git a/scripts/functional-tests/users/profile_test.sah b/scripts/functional-tests/users/profile_test.sah index 2947dd3b2..3336b6d68 100644 --- a/scripts/functional-tests/users/profile_test.sah +++ b/scripts/functional-tests/users/profile_test.sah @@ -40,14 +40,14 @@ function profileCreateEmpty() { function profileForm($name) { _setValue(_textbox(0, _near(_span("Name"))), $name); _click(_italic(0, _near(_span("Association with roles")))); - _click(_cell("Administration")); + _click(_cell("Superuser")); _click(_cell("Save")); } /* test to check a that LibrePlan give us a error */ function profileNotValid($profile){ - _assertExists(_span("checkConstraintUniqueLoginName: profile name is already being used by another profile")); - _assert(_isVisible(_span("checkConstraintUniqueLoginName: profile name is already being used by another profile"))); + _assertExists(_span("profile name is already being used by another profile")); + _assert(_isVisible(_span("profile name is already being used by another profile"))); } function profileEdit($oldName, $newName, $cell) { @@ -75,7 +75,7 @@ function accountsForm($name, $password, $profile) { _setValue(_password(0, _near(_span("Password"))), $password); _setValue(_password(0, _near(_span("Password confirmation"))), $password); _click(_textbox(0, _near(_cell("Add role")))); - _click(_cell("Administration")); + _click(_cell("Superuser")); _click(_cell("Add role")); _click(_textbox(0, _near(_cell("Add profile")))); _click(_cell($profile)); diff --git a/scripts/functional-tests/users/user_test.sah b/scripts/functional-tests/users/user_test.sah index 643b99e8a..667e5d733 100644 --- a/scripts/functional-tests/users/user_test.sah +++ b/scripts/functional-tests/users/user_test.sah @@ -94,8 +94,8 @@ function accountsForm($name, $password) { /* test to check a that LibrePlan give us a error */ function accountsNotValid(){ - _assertExists(_span("checkConstraintUniqueLoginName: username is already being used by another user")); - _assert(_isVisible(_span("checkConstraintUniqueLoginName: username is already being used by another user"))); + _assertExists(_span("username is already being used by another user")); + _assert(_isVisible(_span("username is already being used by another user"))); } function accountsComprobateUser($name, $Password) { @@ -110,7 +110,7 @@ function accountsEdit($oldName, $newName, $newPassword, $cell) { _setValue(_password(0, _near(_span("Password"))), $newPassword); _setValue(_password(0, _near(_span("Password confirmation"))), $newPassword); _click(_textbox(0, _near(_cell("Add role")))); - _click(_cell("Administration")); + _click(_cell("Superuser")); _click(_cell("Add role")); _click(_cell("Save")); commonSaveValidation("User", $newName);