]> wagnertech.de Git - kivitendo-erp.git/blob - t/selenium/testscripts/selling/begin/S001CreateOffers.t
Angepasst an Einzelfalltests und einfügen von TODO Blocks, damit bei der nächsten...
[kivitendo-erp.git] / t / selenium / testscripts / selling / begin / S001CreateOffers.t
1 if(!defined $sel) {
2   require "t/selenium/AllTests.t";
3   init_server("singlefileonly",$0);
4   exit(0);
5 }
6 diag("Create offers");
7
8 $sel->select_frame_ok("relative=up");
9 $sel->click_ok("link=Angebot 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->select_ok("customer", "label=TestFrau3");
14 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
15 $sel->select_ok("customer", "label=Selenium-Testfirma1");
16 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
17 $sel->select_ok("cp_id", "label=Grosshaupt (Verkauf)");
18 $sel->type_ok("shipvia", "per pedes");
19 $sel->type_ok("transaction_description", "alpha");
20 $sel->type_ok("quonumber", "1");
21 $sel->select_ok("globalproject_id", "label=1001");
22 $sel->click_ok("cb_show_details");
23 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
24 $sel->type_ok("partnumber_1", "1");
25 TODO: {
26   local $TODO = "Popups werden von Selenium noch nicht unterstützt!";
27   $sel->click_ok("//button[\@type='button']");
28   $sel->wait_for_page_to_load_ok($lxtest->{timeout});
29 }
30 $sel->click_ok("update_button");
31 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
32 $sel->click_ok("action");
33 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
34 $sel->click_ok("update_button");
35 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
36 $sel->click_ok("document.oe.action[5]");
37 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
38 $sel->click_ok("document.oe.action[6]");
39 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
40 $sel->select_ok("customer", "label=TestFrau3");
41 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
42 $sel->type_ok("partnumber_1", "991");
43 $sel->click_ok("update_button");
44 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
45 $sel->type_ok("qty_1", "5");
46 $sel->select_ok("sellprice_pg_1", "label=SeleniumTestPreisgruppe1");
47 $sel->click_ok("update_button");
48 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
49 $sel->click_ok("taxincluded");
50 $sel->select_ok("payment_id", "label=Schnellzahler/Skonto");
51 $sel->click_ok("update_button");
52 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
53 $sel->click_ok("document.oe.action[6]");
54 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
55 $sel->select_ok("customer", "label=TestMann2");
56 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
57 $sel->type_ok("partnumber_1", "1");
58 $sel->click_ok("update_button");
59 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
60 $sel->click_ok("action");
61 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
62 $sel->select_ok("sellprice_pg_1", "label=SeleniumTestPreisgruppe1");
63 $sel->type_ok("qty_1", "19");
64 $sel->select_ok("payment_id", "label=Schnellzahler/Skonto");
65 $sel->click_ok("update_button");
66 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
67 $sel->click_ok("document.oe.action[6]");
68 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
69 1;