Angepasst an Einzelfalltests und einfügen von TODO Blocks, damit bei der nächsten...
[kivitendo-erp.git] / t / selenium / testscripts / system / begin / S009AddShowDeleteMeasure.t
1 if(!defined $sel) {
2   require "t/selenium/AllTests.t";
3   init_server("singlefileonly",$0);
4   exit(0);
5 }
6 diag("Add show and delete measure");
7
8 $sel->select_frame_ok("relative=up");
9 $sel->title_is("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db});
10 $sel->click_ok("link=Maßeinheiten");
11 $sel->wait_for_page_to_load($lxtest->{timeout});
12 $sel->select_frame_ok("main_window");
13 $sel->type_ok("new_name", "ogge");
14 $sel->select_ok("new_base_unit", "label=Stck");
15 $sel->type_ok("new_factor", "3,5");
16 $sel->type_ok("new_localized_" . $lxtest->{lang_id}, "kogge");
17 $sel->type_ok("new_localized_plural_" . $lxtest->{lang_id}, "kogges");
18 $sel->click_ok("action");
19 $sel->wait_for_page_to_load($lxtest->{timeout});
20 $sel->type_ok("localized_1_" . $lxtest->{lang_id}, "gm");
21 $sel->type_ok("localized_plural_1_" . $lxtest->{lang_id}, "gms");
22 $sel->type_ok("localized_2_" . $lxtest->{lang_id}, "gg");
23 $sel->type_ok("localized_plural_2_" . $lxtest->{lang_id}, "ggs");
24 $sel->type_ok("localized_3_" . $lxtest->{lang_id}, "gk");
25 $sel->type_ok("localized_plural_3_" . $lxtest->{lang_id}, "gks");
26 $sel->type_ok("localized_4_" . $lxtest->{lang_id}, "tt");
27 $sel->type_ok("localized_plural_4_" . $lxtest->{lang_id}, "tts");
28 $sel->type_ok("localized_5_" . $lxtest->{lang_id}, "lm");
29 $sel->type_ok("localized_plural_5_" . $lxtest->{lang_id}, "lms");
30 $sel->type_ok("localized_6_" . $lxtest->{lang_id}, "LL");
31 $sel->type_ok("localized_plural_6_" . $lxtest->{lang_id}, "LLs");
32 $sel->type_ok("localized_7_" . $lxtest->{lang_id}, "kctS");
33 $sel->type_ok("localized_plural_7_" . $lxtest->{lang_id}, "kctSs");
34 $sel->click_ok("document.forms[0].action[1]");
35 $sel->wait_for_page_to_load($lxtest->{timeout});
36 $sel->click_ok("delete_8");
37 $sel->click_ok("//tr[9]/td[1]/a/img");
38 $sel->wait_for_page_to_load($lxtest->{timeout});
39 $sel->click_ok("//tr[8]/td[1]/a[1]/img");
40 $sel->wait_for_page_to_load($lxtest->{timeout});
41 $sel->click_ok("//tr[7]/td[1]/a[2]/img");
42 $sel->wait_for_page_to_load($lxtest->{timeout});
43 $sel->click_ok("//tr[8]/td[1]/a[2]/img");
44 $sel->wait_for_page_to_load($lxtest->{timeout});
45 $sel->click_ok("delete_8");
46 $sel->click_ok("document.forms[0].action[1]");
47 $sel->wait_for_page_to_load($lxtest->{timeout});
48 1;