Fix work hours functional test
FEA: ItEr75S04BugFixing
This commit is contained in:
parent
25007873dd
commit
1945bbe34d
2 changed files with 7 additions and 7 deletions
|
|
@ -533,12 +533,12 @@ function commonWorkReportModelCreate($name, $type){
|
|||
}
|
||||
|
||||
function commonWorkReportModelForm($name, $type){
|
||||
_setValue(_textbox(0, _near(_span("Name:"))), $name);
|
||||
_removeFocus(_textbox(0, _near(_div("Name:"))));
|
||||
_setSelected(_select(0, _near(_span("Task:"))), $type);
|
||||
_setValue(_textbox(0, _near(_span("Name"))), $name);
|
||||
_removeFocus(_textbox(0, _near(_div("Name"))));
|
||||
_setSelected(_select(0, _near(_span("Task"))), $type);
|
||||
_click(_cell("Add New Complementary Field"));
|
||||
_setValue(_textbox(0, _near(_div("Complementary text fields"))), $name);
|
||||
_setValue(_textbox(1, _near(_div("Complementary text fields"))), "12");
|
||||
_setValue(_textbox(0, _near(_span("Complementary text fields"))), $name);
|
||||
_setValue(_textbox(1, _near(_span("Complementary text fields"))), "12");
|
||||
_click(_cell("Save"));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -140,8 +140,8 @@ function workReportCreate($wReport, $project, $workHour) {
|
|||
function workReportForm($machine, $project, $workHour) {
|
||||
_click(_cell("New work report"));
|
||||
_click(_cell("Add new row"));
|
||||
_setValue(_textbox(2, _near(_parentTable(_div("Date")))),$machine);
|
||||
_click(_italic(0, _near(_textbox(3, _near(_parentTable(_div("Date")))))));
|
||||
_setValue(_textbox(2, _near(_span("Work report lines"))), $machine);
|
||||
_click(_italic(0, _near(_textbox(3, _near(_span("Work report lines"))))));
|
||||
_click(_div($project+"[2]", _parentTable(_div("Project code[1]"))));
|
||||
_setValue(_textbox("z-textbox[1]"),"8");
|
||||
_setSelected(_select(2), $workHour);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue