]> wagnertech.de Git - kivitendo-erp.git/blobdiff - t/selenium/testscripts/system/begin/S009AddShowDeleteMeasure.t
Umstellung von TODO auf SKIP und Verkürzung der Tests damit um mehr als 5 Minuten...
[kivitendo-erp.git] / t / selenium / testscripts / system / begin / S009AddShowDeleteMeasure.t
index 7dac06cf4b96a15f80dcc677b1a7105a823c0011..1fe22da2d24d8f3be8b4b50e45385d2301b0ad73 100644 (file)
@@ -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