2 require "t/selenium/AllTests.t";
3 init_server("singlefileonly",$0);
8 if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){
9 require_ok("../../begin/B004Login.t");
12 $sel->select_frame_ok("relative=up");
13 $sel->title_is("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db});
14 $sel->click_ok("link=Dienstleistung erfassen");
15 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
16 $sel->select_frame_ok("main_window");
17 $sel->type_ok("partnumber", "999");
18 $sel->type_ok("description", "Programmierstunde");
19 $sel->select_ok("partsgroup", "label=TestSeleniumWarengruppe3");
20 $sel->select_ok("buchungsgruppen_id", "label=Standard 16%/19%");
21 $sel->type_ok("notes", "Eine Programmierstunde wird immer besser bezahlt");
22 $sel->type_ok("listprice", "50,00");
23 $sel->type_ok("sellprice", "100");
24 $sel->type_ok("lastcost", "45");
25 $sel->select_ok("unit", "label=Std");
26 $sel->select_ok("payment_id", "label=Schnellzahler/Skonto");
27 $sel->type_ok("price_1", "100");
28 $sel->click_ok("action");
29 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
30 $sel->click_ok("document.ic.action[1]");
31 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
32 $sel->type_ok("partnumber", "998");
33 $sel->type_ok("description", "Telefonstunde");
34 $sel->select_ok("partsgroup", "label=TestSeleniumWarengruppe3");
35 $sel->select_ok("buchungsgruppen_id", "label=Standard 16%/19%");
36 $sel->type_ok("notes", "gibt's beim Telekomunikator");
37 $sel->type_ok("listprice", "0,05");
38 $sel->type_ok("sellprice", "0,10");
39 $sel->type_ok("lastcost", "0,02");
40 $sel->select_ok("unit", "label=psch");
41 $sel->select_ok("payment_id", "label=Schnellzahler/Skonto");
42 $sel->type_ok("price_1", "0,02");
43 $sel->type_ok("price_2", "0,1");
44 $sel->type_ok("price_1", "0,1");
45 $sel->click_ok("document.ic.action[1]");
46 $sel->wait_for_page_to_load_ok($lxtest->{timeout});