From a359014fbee54f28afb70b729bc601ae7935200c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Fern=C3=A1ndez=20de=20la=20Cigo=C3=B1a=20N=C3=B3vo?= =?UTF-8?q?a?= Date: Thu, 22 Sep 2011 18:03:20 +0200 Subject: [PATCH] Include some changes to solve a error on criteria_test.sah and include scheduling tests on all_test.suite FEA: ItEr75S18DataTypesTests --- scripts/functional-tests/all_test.suite | 2 ++ .../data-types/criteria_test.sah | 20 +++++++++---------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/scripts/functional-tests/all_test.suite b/scripts/functional-tests/all_test.suite index d5d25ce5f..6d3a19c5c 100644 --- a/scripts/functional-tests/all_test.suite +++ b/scripts/functional-tests/all_test.suite @@ -32,3 +32,5 @@ account/settings_test.sah # Scheduling scheduling/templates_test.sah +scheduling/planning_criteria_test.sah +scheduling/planning_labels_test.sah diff --git a/scripts/functional-tests/data-types/criteria_test.sah b/scripts/functional-tests/data-types/criteria_test.sah index a9ee5a1dd..282a8049b 100644 --- a/scripts/functional-tests/data-types/criteria_test.sah +++ b/scripts/functional-tests/data-types/criteria_test.sah @@ -35,16 +35,16 @@ */ _include("../common_functions.sah"); -function criteriaCreateDuplicateType($type){ +function criteriaCreateDuplicateType($type, $names){ commonCreate("Criteria"); - commonCriteriaForm($type); + commonCriteriaForm($type, $names); criteriaNotValid(); _log("Do not allow create a criterion Duplicate type", "custom1"); } -function criteriaCreateEmpty(){ +function criteriaCreateEmpty($type, $names){ commonCreate("Criteria"); - commonCriteriaForm(""); + commonCriteriaForm($type, $names); _assertExists(_div("name: criterion type name not specified")); _assert(_isVisible(_div("name: criterion type name not specified"))); _log("Do not allow create a criterion with empty type", "custom1"); @@ -114,9 +114,9 @@ function criteriaCheckCode($criteriaType){ _log("Check code label", "custom1"); } -function criteriaCreateWithoutCode($type){ +function criteriaCreateWithoutCode($type, $typeList){ commonCreate("Criteria"); - commonCriteriaForm($type); + commonCriteriaForm($type, [$typeList]); commonEmptyCodeValidation(); } @@ -132,14 +132,14 @@ var $criteriaName2 = "criterion2"; /* test actions */ commonLogin("admin","admin"); -commonCriteriaCreate($criteriaType); -criteriaCreateDuplicateType($criteriaType); -criteriaCreateEmpty(); +commonCriteriaCreate($criteriaType, [$criteriaType]); +criteriaCreateDuplicateType($criteriaType, [$criteriaType]); +criteriaCreateEmpty("", [$criteriaType]); criteriaCreateDuplicateName($criteriaType2, $criteriaName); criteriaCreateWithHierarchy($criteriaType2, $criteriaName, $criteriaName2); criteriaCreateWithoutHierarchy($criteriaType3, $criteriaName, $criteriaName2); criteriaEdit($criteriaType, $criteriaNewType, 4); -criteriaCheckCode($criteriaType); +criteriaCheckCode($criteriaType, [$criteriaType]); commonCriteriaDelete($criteriaNewType); commonCriteriaDelete($criteriaType2); commonCriteriaDelete($criteriaType3);