4bba0b21865f67681fa27a2af42ea704b1bc73f2
[kivitendo-erp.git] / t / selenium / testscripts / masterdata / begin / M005AddProduct.t
1 if(!defined $sel) {
2   require "t/selenium/AllTests.t";
3   init_server("singlefileonly",$0);
4   exit(0);
5 }
6 diag("Add product");
7 SKIP: {
8   start_login();
9   
10   $sel->click_ok("link=Erzeugnis erfassen");
11   $sel->wait_for_page_to_load_ok($lxtest->{timeout});
12   $sel->select_frame_ok("main_window");
13   $sel->type_ok("partnumber", "991");
14   $sel->type_ok("description", "Handykarten");
15   $sel->select_ok("partsgroup", "label=TestSeleniumWarengruppe2");
16   $sel->select_ok("buchungsgruppen_id", "label=Standard 16%/19%");
17   $sel->click_ok("trigger1");
18   $sel->type_ok("listprice", "3,00");
19   $sel->type_ok("sellprice", "30,00");
20   $sel->select_ok("unit", "label=Stck");
21   $sel->type_ok("stock", "100");
22   $sel->type_ok("rop", "10");
23   $sel->type_ok("bin", "991");
24   $sel->click_ok("not_discountable");
25   $sel->click_ok("shop");
26   $sel->type_ok("price_1", "30,00");
27   $sel->type_ok("price_2", "30,00");
28   $sel->type_ok("make_1", "TCom");
29   $sel->type_ok("model_1", "standard");
30   $sel->click_ok("action");
31   $sel->wait_for_page_to_load_ok($lxtest->{timeout});
32   $sel->click_ok("document.ic.action[1]");
33   $sel->wait_for_page_to_load_ok($lxtest->{timeout});
34 };
35 1;