Fix users functional tests
FEA: ItEr76S04BugFixing
This commit is contained in:
parent
26cc207029
commit
39311a7a03
2 changed files with 7 additions and 7 deletions
|
|
@ -40,14 +40,14 @@ function profileCreateEmpty() {
|
||||||
function profileForm($name) {
|
function profileForm($name) {
|
||||||
_setValue(_textbox(0, _near(_span("Name"))), $name);
|
_setValue(_textbox(0, _near(_span("Name"))), $name);
|
||||||
_click(_italic(0, _near(_span("Association with roles"))));
|
_click(_italic(0, _near(_span("Association with roles"))));
|
||||||
_click(_cell("Administration"));
|
_click(_cell("Superuser"));
|
||||||
_click(_cell("Save"));
|
_click(_cell("Save"));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* test to check a that LibrePlan give us a error */
|
/* test to check a that LibrePlan give us a error */
|
||||||
function profileNotValid($profile){
|
function profileNotValid($profile){
|
||||||
_assertExists(_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("checkConstraintUniqueLoginName: 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) {
|
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"))), $password);
|
||||||
_setValue(_password(0, _near(_span("Password confirmation"))), $password);
|
_setValue(_password(0, _near(_span("Password confirmation"))), $password);
|
||||||
_click(_textbox(0, _near(_cell("Add role"))));
|
_click(_textbox(0, _near(_cell("Add role"))));
|
||||||
_click(_cell("Administration"));
|
_click(_cell("Superuser"));
|
||||||
_click(_cell("Add role"));
|
_click(_cell("Add role"));
|
||||||
_click(_textbox(0, _near(_cell("Add profile"))));
|
_click(_textbox(0, _near(_cell("Add profile"))));
|
||||||
_click(_cell($profile));
|
_click(_cell($profile));
|
||||||
|
|
|
||||||
|
|
@ -94,8 +94,8 @@ function accountsForm($name, $password) {
|
||||||
|
|
||||||
/* test to check a that LibrePlan give us a error */
|
/* test to check a that LibrePlan give us a error */
|
||||||
function accountsNotValid(){
|
function accountsNotValid(){
|
||||||
_assertExists(_span("checkConstraintUniqueLoginName: username is already being used by another user"));
|
_assertExists(_span("username is already being used by another user"));
|
||||||
_assert(_isVisible(_span("checkConstraintUniqueLoginName: username is already being used by another user")));
|
_assert(_isVisible(_span("username is already being used by another user")));
|
||||||
}
|
}
|
||||||
|
|
||||||
function accountsComprobateUser($name, $Password) {
|
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"))), $newPassword);
|
||||||
_setValue(_password(0, _near(_span("Password confirmation"))), $newPassword);
|
_setValue(_password(0, _near(_span("Password confirmation"))), $newPassword);
|
||||||
_click(_textbox(0, _near(_cell("Add role"))));
|
_click(_textbox(0, _near(_cell("Add role"))));
|
||||||
_click(_cell("Administration"));
|
_click(_cell("Superuser"));
|
||||||
_click(_cell("Add role"));
|
_click(_cell("Add role"));
|
||||||
_click(_cell("Save"));
|
_click(_cell("Save"));
|
||||||
commonSaveValidation("User", $newName);
|
commonSaveValidation("User", $newName);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue