X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/b14c2015aa75d772362c98b56674ebe183e7c9aa..c1efeacb2b7cad96dcd458f28e96e05029d150d6:/t/selenium/testscripts/system/begin/S009AddShowDeleteMeasure.t diff --git a/t/selenium/testscripts/system/begin/S009AddShowDeleteMeasure.t b/t/selenium/testscripts/system/begin/S009AddShowDeleteMeasure.t index 7dac06cf4..1fe22da2d 100644 --- a/t/selenium/testscripts/system/begin/S009AddShowDeleteMeasure.t +++ b/t/selenium/testscripts/system/begin/S009AddShowDeleteMeasure.t @@ -4,45 +4,46 @@ if(!defined $sel) { exit(0); } diag("Add show and delete measure"); - -$sel->select_frame_ok("relative=up"); -$sel->title_is("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db}); -$sel->click_ok("link=Maßeinheiten"); -$sel->wait_for_page_to_load($lxtest->{timeout}); -$sel->select_frame_ok("main_window"); -$sel->type_ok("new_name", "ogge"); -$sel->select_ok("new_base_unit", "label=Stck"); -$sel->type_ok("new_factor", "3,5"); -$sel->type_ok("new_localized_" . $lxtest->{lang_id}, "kogge"); -$sel->type_ok("new_localized_plural_" . $lxtest->{lang_id}, "kogges"); -$sel->click_ok("action"); -$sel->wait_for_page_to_load($lxtest->{timeout}); -$sel->type_ok("localized_1_" . $lxtest->{lang_id}, "gm"); -$sel->type_ok("localized_plural_1_" . $lxtest->{lang_id}, "gms"); -$sel->type_ok("localized_2_" . $lxtest->{lang_id}, "gg"); -$sel->type_ok("localized_plural_2_" . $lxtest->{lang_id}, "ggs"); -$sel->type_ok("localized_3_" . $lxtest->{lang_id}, "gk"); -$sel->type_ok("localized_plural_3_" . $lxtest->{lang_id}, "gks"); -$sel->type_ok("localized_4_" . $lxtest->{lang_id}, "tt"); -$sel->type_ok("localized_plural_4_" . $lxtest->{lang_id}, "tts"); -$sel->type_ok("localized_5_" . $lxtest->{lang_id}, "lm"); -$sel->type_ok("localized_plural_5_" . $lxtest->{lang_id}, "lms"); -$sel->type_ok("localized_6_" . $lxtest->{lang_id}, "LL"); -$sel->type_ok("localized_plural_6_" . $lxtest->{lang_id}, "LLs"); -$sel->type_ok("localized_7_" . $lxtest->{lang_id}, "kctS"); -$sel->type_ok("localized_plural_7_" . $lxtest->{lang_id}, "kctSs"); -$sel->click_ok("document.forms[0].action[1]"); -$sel->wait_for_page_to_load($lxtest->{timeout}); -$sel->click_ok("delete_8"); -$sel->click_ok("//tr[9]/td[1]/a/img"); -$sel->wait_for_page_to_load($lxtest->{timeout}); -$sel->click_ok("//tr[8]/td[1]/a[1]/img"); -$sel->wait_for_page_to_load($lxtest->{timeout}); -$sel->click_ok("//tr[7]/td[1]/a[2]/img"); -$sel->wait_for_page_to_load($lxtest->{timeout}); -$sel->click_ok("//tr[8]/td[1]/a[2]/img"); -$sel->wait_for_page_to_load($lxtest->{timeout}); -$sel->click_ok("delete_8"); -$sel->click_ok("document.forms[0].action[1]"); -$sel->wait_for_page_to_load($lxtest->{timeout}); +SKIP: { + start_login(); + + $sel->click_ok("link=Maßeinheiten"); + $sel->wait_for_page_to_load($lxtest->{timeout}); + $sel->select_frame_ok("main_window"); + $sel->type_ok("new_name", "ogge"); + $sel->select_ok("new_base_unit", "label=Stck"); + $sel->type_ok("new_factor", "3,5"); + $sel->type_ok("new_localized_" . $lxtest->{lang_id}, "kogge"); + $sel->type_ok("new_localized_plural_" . $lxtest->{lang_id}, "kogges"); + $sel->click_ok("action"); + $sel->wait_for_page_to_load($lxtest->{timeout}); + $sel->type_ok("localized_1_" . $lxtest->{lang_id}, "gm"); + $sel->type_ok("localized_plural_1_" . $lxtest->{lang_id}, "gms"); + $sel->type_ok("localized_2_" . $lxtest->{lang_id}, "gg"); + $sel->type_ok("localized_plural_2_" . $lxtest->{lang_id}, "ggs"); + $sel->type_ok("localized_3_" . $lxtest->{lang_id}, "gk"); + $sel->type_ok("localized_plural_3_" . $lxtest->{lang_id}, "gks"); + $sel->type_ok("localized_4_" . $lxtest->{lang_id}, "tt"); + $sel->type_ok("localized_plural_4_" . $lxtest->{lang_id}, "tts"); + $sel->type_ok("localized_5_" . $lxtest->{lang_id}, "lm"); + $sel->type_ok("localized_plural_5_" . $lxtest->{lang_id}, "lms"); + $sel->type_ok("localized_6_" . $lxtest->{lang_id}, "LL"); + $sel->type_ok("localized_plural_6_" . $lxtest->{lang_id}, "LLs"); + $sel->type_ok("localized_7_" . $lxtest->{lang_id}, "kctS"); + $sel->type_ok("localized_plural_7_" . $lxtest->{lang_id}, "kctSs"); + $sel->click_ok("document.forms[0].action[1]"); + $sel->wait_for_page_to_load($lxtest->{timeout}); + $sel->click_ok("delete_8"); + $sel->click_ok("//tr[9]/td[1]/a/img"); + $sel->wait_for_page_to_load($lxtest->{timeout}); + $sel->click_ok("//tr[8]/td[1]/a[1]/img"); + $sel->wait_for_page_to_load($lxtest->{timeout}); + $sel->click_ok("//tr[7]/td[1]/a[2]/img"); + $sel->wait_for_page_to_load($lxtest->{timeout}); + $sel->click_ok("//tr[8]/td[1]/a[2]/img"); + $sel->wait_for_page_to_load($lxtest->{timeout}); + $sel->click_ok("delete_8"); + $sel->click_ok("document.forms[0].action[1]"); + $sel->wait_for_page_to_load($lxtest->{timeout}); +}; 1; \ No newline at end of file