Angepasst an Einzelfalltests und einfügen von TODO Blocks, damit bei der nächsten...
[kivitendo-erp.git] / t / selenium / testscripts / selling / begin / S002CreateCharge.t
1 if(!defined $sel) {
2   require "t/selenium/AllTests.t";
3   init_server("singlefileonly",$0);
4   exit(0);
5 }
6 diag("Create charge");
7
8 $sel->select_frame_ok("relative=up");
9 $sel->click_ok("link=Auftrag erfassen");
10 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
11 $sel->select_frame_ok("main_window");
12 $sel->select_ok("cp_id", "label=Grosshaupt (Verkauf)");
13 $sel->type_ok("shippingpoint", "Braunschweig");
14 $sel->type_ok("shipvia", "LKW");
15 $sel->type_ok("transaction_description", "beta");
16 $sel->click_ok("delivered");
17 $sel->type_ok("ordnumber", "1");
18 $sel->type_ok("quonumber", "1");
19 $sel->type_ok("cusordnumber", "97862");
20 $sel->select_ok("globalproject_id", "label=1001");
21 $sel->type_ok("partnumber_1", "1");
22 $sel->click_ok("update_button");
23 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
24 $sel->click_ok("action");
25 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
26 $sel->type_ok("ship_1", "20");
27 $sel->type_ok("qty_1", "20");
28 $sel->select_ok("sellprice_pg_1", "label=SeleniumTestPreisgruppe1");
29 $sel->click_ok("update_button");
30 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
31 $sel->select_ok("payment_id", "label=Schnellzahler/Skonto");
32 $sel->click_ok("update_button");
33 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
34 $sel->click_ok("document.oe.action[6]");
35 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
36 $sel->select_ok("customer", "label=TestFrau3");
37 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
38 $sel->type_ok("shippingpoint", "Göttingen");
39 $sel->type_ok("shipvia", "PKW");
40 $sel->type_ok("transaction_description", "teta");
41 $sel->type_ok("ordnumber", "2");
42 $sel->type_ok("quonumber", "2");
43 $sel->type_ok("cusordnumber", "23453666");
44 $sel->type_ok("partnumber_1", "911");
45 $sel->type_ok("ship_1", "5");
46 $sel->type_ok("qty_1", "5");
47 $sel->click_ok("update_button");
48 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
49 $sel->click_ok("action");
50 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
51 $sel->type_ok("description", "Handykarten D2");
52 $sel->select_ok("partsgroup", "label=TestSeleniumWarengruppe3");
53 $sel->type_ok("listprice", "10,00");
54 $sel->type_ok("sellprice", "20,00");
55 $sel->type_ok("lastcost", "5,00");
56 $sel->select_ok("price_factor_id", "label=pro 10");
57 $sel->select_ok("unit", "label=Stck");
58 $sel->type_ok("bin", "911");
59 $sel->click_ok("not_discountable");
60 $sel->click_ok("shop");
61 $sel->click_ok("action");
62 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
63 $sel->click_ok("document.ic.action[1]");
64 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
65 $sel->click_ok("document.oe.action[6]");
66 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
67 $sel->select_ok("customer", "label=TestMann2");
68 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
69 $sel->type_ok("partnumber_1", "991");
70 $sel->type_ok("ship_1", "10");
71 $sel->type_ok("qty_1", "10");
72 $sel->click_ok("update_button");
73 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
74 $sel->select_ok("price_factor_id_1", "label=pro 10");
75 $sel->click_ok("update_button");
76 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
77 $sel->type_ok("sellprice_1", "1000");
78 $sel->click_ok("update_button");
79 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
80 $sel->click_ok("document.oe.action[6]");
81 $sel->wait_for_page_to_load_ok($lxtest->{timeout});