From db02558bb1df0d12283da7de7a50320f117f5dd8 Mon Sep 17 00:00:00 2001 From: Manuel Rego Casasnovas Date: Mon, 7 Nov 2011 09:17:07 +0100 Subject: [PATCH] Fix functional tests related to workers, virtual workers and machines FEA: ItEr75S04BugFixing --- scripts/functional-tests/resources/machines_test.sah | 4 +++- scripts/functional-tests/resources/virtual_worker_test.sah | 4 +++- scripts/functional-tests/resources/worker_test.sah | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/scripts/functional-tests/resources/machines_test.sah b/scripts/functional-tests/resources/machines_test.sah index 24b9fe544..4a675c77d 100644 --- a/scripts/functional-tests/resources/machines_test.sah +++ b/scripts/functional-tests/resources/machines_test.sah @@ -133,7 +133,9 @@ function machineAssignProjectForm($machine){ _click(_cell($machine)); _click(_cell("Add")); _setValue(_textbox(0, _near(_span("Sum of all rows"))), "1"); - _click(_cell("z-button-cm[39]")); + _click(_cell("z-button-cm[40]")); + _assertExists(_div("box standard-task assigned")); + _log("Task assigned", "custom1"); _click(_image("ico_save.png")); _click(_cell("OK")); } diff --git a/scripts/functional-tests/resources/virtual_worker_test.sah b/scripts/functional-tests/resources/virtual_worker_test.sah index a1be619ee..7c0aa67e8 100644 --- a/scripts/functional-tests/resources/virtual_worker_test.sah +++ b/scripts/functional-tests/resources/virtual_worker_test.sah @@ -137,7 +137,9 @@ function virtualWorkerAssignProjectForm($workerName){ _click(_div($workerName)); _click(_cell($workerName)); _click(_cell("Add")); - _click(_cell("z-button-cm[39]")); + _click(_cell("z-button-cm[40]")); + _assertExists(_div("box standard-task assigned")); + _log("Task assigned", "custom1"); _click(_image("ico_save.png")); _click(_cell("OK")); } diff --git a/scripts/functional-tests/resources/worker_test.sah b/scripts/functional-tests/resources/worker_test.sah index e54b9baa3..9fa5ffc7b 100644 --- a/scripts/functional-tests/resources/worker_test.sah +++ b/scripts/functional-tests/resources/worker_test.sah @@ -149,7 +149,9 @@ function workerAssignProjectForm($workerName, $workerSurName){ _click(_div($workerSurName+", "+$workerName)); _click(_cell($workerSurName+", "+$workerName)); _click(_cell("Add")); - _click(_cell("z-button-cm[39]")); + _click(_cell("z-button-cm[40]")); + _assertExists(_div("box standard-task assigned")); + _log("Task assigned", "custom1"); _click(_image("ico_save.png")); _click(_cell("OK")); }