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