Einkaufsrechnungen: Lieferanten richtig escapen.
[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 SKIP: {
8   start_login();
9   
10   $sel->click_ok("link=Auftrag erfassen");
11   $sel->wait_for_page_to_load_ok($lxtest->{timeout});
12   $sel->select_frame_ok("main_window");
13   $sel->select_ok("cp_id", "label=Grosshaupt (Verkauf)");
14   $sel->type_ok("shippingpoint", "Braunschweig");
15   $sel->type_ok("shipvia", "LKW");
16   $sel->type_ok("transaction_description", "beta");
17   $sel->click_ok("delivered");
18   $sel->type_ok("ordnumber", "1");
19   $sel->type_ok("quonumber", "1");
20   $sel->type_ok("cusordnumber", "97862");
21   $sel->select_ok("globalproject_id", "label=1001");
22   $sel->type_ok("partnumber_1", "1");
23   $sel->click_ok("update_button");
24   $sel->wait_for_page_to_load_ok($lxtest->{timeout});
25   $sel->click_ok("action");
26   $sel->wait_for_page_to_load_ok($lxtest->{timeout});
27   $sel->type_ok("ship_1", "20");
28   $sel->type_ok("qty_1", "20");
29   $sel->select_ok("sellprice_pg_1", "label=SeleniumTestPreisgruppe1");
30   $sel->click_ok("update_button");
31   $sel->wait_for_page_to_load_ok($lxtest->{timeout});
32   $sel->select_ok("payment_id", "label=Schnellzahler/Skonto");
33   $sel->click_ok("update_button");
34   $sel->wait_for_page_to_load_ok($lxtest->{timeout});
35   $sel->click_ok("document.oe.action[6]");
36   $sel->wait_for_page_to_load_ok($lxtest->{timeout});
37   $sel->select_ok("customer", "label=TestFrau3");
38   $sel->wait_for_page_to_load_ok($lxtest->{timeout});
39   $sel->type_ok("shippingpoint", "Göttingen");
40   $sel->type_ok("shipvia", "PKW");
41   $sel->type_ok("transaction_description", "teta");
42   $sel->type_ok("ordnumber", "2");
43   $sel->type_ok("quonumber", "2");
44   $sel->type_ok("cusordnumber", "23453666");
45   $sel->type_ok("partnumber_1", "911");
46   $sel->type_ok("ship_1", "5");
47   $sel->type_ok("qty_1", "5");
48   $sel->click_ok("update_button");
49   $sel->wait_for_page_to_load_ok($lxtest->{timeout});
50   $sel->click_ok("action");
51   $sel->wait_for_page_to_load_ok($lxtest->{timeout});
52   $sel->type_ok("description", "Handykarten D2");
53   $sel->select_ok("partsgroup", "label=TestSeleniumWarengruppe3");
54   $sel->type_ok("listprice", "10,00");
55   $sel->type_ok("sellprice", "20,00");
56   $sel->type_ok("lastcost", "5,00");
57   $sel->select_ok("price_factor_id", "label=pro 10");
58   $sel->select_ok("unit", "label=Stck");
59   $sel->type_ok("bin", "911");
60   $sel->click_ok("not_discountable");
61   $sel->click_ok("shop");
62   $sel->click_ok("action");
63   $sel->wait_for_page_to_load_ok($lxtest->{timeout});
64   $sel->click_ok("document.ic.action[1]");
65   $sel->wait_for_page_to_load_ok($lxtest->{timeout});
66   $sel->click_ok("document.oe.action[6]");
67   $sel->wait_for_page_to_load_ok($lxtest->{timeout});
68   $sel->select_ok("customer", "label=TestMann2");
69   $sel->wait_for_page_to_load_ok($lxtest->{timeout});
70   $sel->type_ok("partnumber_1", "991");
71   $sel->type_ok("ship_1", "10");
72   $sel->type_ok("qty_1", "10");
73   $sel->click_ok("update_button");
74   $sel->wait_for_page_to_load_ok($lxtest->{timeout});
75   $sel->select_ok("price_factor_id_1", "label=pro 10");
76   $sel->click_ok("update_button");
77   $sel->wait_for_page_to_load_ok($lxtest->{timeout});
78   $sel->type_ok("sellprice_1", "1000");
79   $sel->click_ok("update_button");
80   $sel->wait_for_page_to_load_ok($lxtest->{timeout});
81   $sel->click_ok("document.oe.action[6]");
82   $sel->wait_for_page_to_load_ok($lxtest->{timeout});
83 };
84 1;