Fix several functional tests due to problems with accept button in resource allocation pop-up
FEA: ItEr75S04BugFixing
This commit is contained in:
parent
866a52e1e9
commit
514de41fa3
5 changed files with 6 additions and 6 deletions
|
|
@ -133,7 +133,7 @@ function machineAssignProjectForm($machine){
|
||||||
_click(_cell($machine));
|
_click(_cell($machine));
|
||||||
_click(_cell("Add"));
|
_click(_cell("Add"));
|
||||||
_setValue(_textbox(0, _near(_span("Sum of all rows"))), "1");
|
_setValue(_textbox(0, _near(_span("Sum of all rows"))), "1");
|
||||||
_click(_cell("z-button-cm[40]"));
|
_click(_row("Accept[2]"));
|
||||||
_assertExists(_div("box standard-task assigned"));
|
_assertExists(_div("box standard-task assigned"));
|
||||||
_log("Task assigned", "custom1");
|
_log("Task assigned", "custom1");
|
||||||
_click(_image("ico_save.png"));
|
_click(_image("ico_save.png"));
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@ function subcontractingTaskForSubcontractForm($company, $subProjectName){
|
||||||
_setValue(_textbox(0, _near(_span("Subcontract price"))), "6000");
|
_setValue(_textbox(0, _near(_span("Subcontract price"))), "6000");
|
||||||
_setValue(_textbox(0, _near(_span("Subcontracted code"))), $companyId);
|
_setValue(_textbox(0, _near(_span("Subcontracted code"))), $companyId);
|
||||||
_click(_checkbox(0, _near(_span("Hours groups"))));
|
_click(_checkbox(0, _near(_span("Hours groups"))));
|
||||||
_click(_cell("z-button-cm[39]"));
|
_click(_row("Accept[2]"));
|
||||||
_click(_image("ico_save.png"));
|
_click(_image("ico_save.png"));
|
||||||
_click(_cell("OK"));
|
_click(_cell("OK"));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -137,7 +137,7 @@ function virtualWorkerAssignProjectForm($workerName){
|
||||||
_click(_div($workerName));
|
_click(_div($workerName));
|
||||||
_click(_cell($workerName));
|
_click(_cell($workerName));
|
||||||
_click(_cell("Add"));
|
_click(_cell("Add"));
|
||||||
_click(_cell("z-button-cm[40]"));
|
_click(_row("Accept[2]"));
|
||||||
_assertExists(_div("box standard-task assigned"));
|
_assertExists(_div("box standard-task assigned"));
|
||||||
_log("Task assigned", "custom1");
|
_log("Task assigned", "custom1");
|
||||||
_click(_image("ico_save.png"));
|
_click(_image("ico_save.png"));
|
||||||
|
|
|
||||||
|
|
@ -149,7 +149,7 @@ function workerAssignProjectForm($workerName, $workerSurName){
|
||||||
_click(_div($workerSurName+", "+$workerName));
|
_click(_div($workerSurName+", "+$workerName));
|
||||||
_click(_cell($workerSurName+", "+$workerName));
|
_click(_cell($workerSurName+", "+$workerName));
|
||||||
_click(_cell("Add"));
|
_click(_cell("Add"));
|
||||||
_click(_cell("z-button-cm[40]"));
|
_click(_row("Accept[2]"));
|
||||||
_assertExists(_div("box standard-task assigned"));
|
_assertExists(_div("box standard-task assigned"));
|
||||||
_log("Task assigned", "custom1");
|
_log("Task assigned", "custom1");
|
||||||
_click(_image("ico_save.png"));
|
_click(_image("ico_save.png"));
|
||||||
|
|
|
||||||
|
|
@ -73,7 +73,7 @@ function planningAssignWorker($workerName){
|
||||||
_click(_div($workerName+", "+$workerName));
|
_click(_div($workerName+", "+$workerName));
|
||||||
_click(_cell($workerName+", "+$workerName));
|
_click(_cell($workerName+", "+$workerName));
|
||||||
_click(_cell("Add"));
|
_click(_cell("Add"));
|
||||||
_click(_cell("z-button-cm[40]"));
|
_click(_row("Accept[2]"));
|
||||||
planningCheckIncorrectWorkerValidation()
|
planningCheckIncorrectWorkerValidation()
|
||||||
_log("try to assign calendar", "custom1");
|
_log("try to assign calendar", "custom1");
|
||||||
}
|
}
|
||||||
|
|
@ -86,7 +86,7 @@ function planningAssignCriterion($criterion){
|
||||||
_click(_div($criterion+" ( "+$criterion+" )[1]"));
|
_click(_div($criterion+" ( "+$criterion+" )[1]"));
|
||||||
_click(_cell($criterion+" ( "+$criterion+" )[1]"));
|
_click(_cell($criterion+" ( "+$criterion+" )[1]"));
|
||||||
_click(_cell("Add"));
|
_click(_cell("Add"));
|
||||||
_click(_cell("z-button-cm[40]"));
|
_click(_row("Accept[2]"));
|
||||||
planningCheckIncorrectCriterionValidation()
|
planningCheckIncorrectCriterionValidation()
|
||||||
_log("Try to assign criterion", "custom1");
|
_log("Try to assign criterion", "custom1");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue