X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/b14c2015aa75d772362c98b56674ebe183e7c9aa..c1efeacb2b7cad96dcd458f28e96e05029d150d6:/t/selenium/testscripts/masterdata/begin/M005AddProduct.t diff --git a/t/selenium/testscripts/masterdata/begin/M005AddProduct.t b/t/selenium/testscripts/masterdata/begin/M005AddProduct.t index 19c4a13e3..4bba0b218 100644 --- a/t/selenium/testscripts/masterdata/begin/M005AddProduct.t +++ b/t/selenium/testscripts/masterdata/begin/M005AddProduct.t @@ -4,35 +4,32 @@ if(!defined $sel) { exit(0); } diag("Add product"); - -if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){ - require_ok("../../begin/B004Login.t"); -} - -$sel->select_frame_ok("relative=up"); -$sel->title_is("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db}); -$sel->click_ok("link=Erzeugnis erfassen"); -$sel->wait_for_page_to_load_ok($lxtest->{timeout}); -$sel->select_frame_ok("main_window"); -$sel->type_ok("partnumber", "991"); -$sel->type_ok("description", "Handykarten"); -$sel->select_ok("partsgroup", "label=TestSeleniumWarengruppe2"); -$sel->select_ok("buchungsgruppen_id", "label=Standard 16%/19%"); -$sel->click_ok("trigger1"); -$sel->type_ok("listprice", "3,00"); -$sel->type_ok("sellprice", "30,00"); -$sel->select_ok("unit", "label=Stck"); -$sel->type_ok("stock", "100"); -$sel->type_ok("rop", "10"); -$sel->type_ok("bin", "991"); -$sel->click_ok("not_discountable"); -$sel->click_ok("shop"); -$sel->type_ok("price_1", "30,00"); -$sel->type_ok("price_2", "30,00"); -$sel->type_ok("make_1", "TCom"); -$sel->type_ok("model_1", "standard"); -$sel->click_ok("action"); -$sel->wait_for_page_to_load_ok($lxtest->{timeout}); -$sel->click_ok("document.ic.action[1]"); -$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +SKIP: { + start_login(); + + $sel->click_ok("link=Erzeugnis erfassen"); + $sel->wait_for_page_to_load_ok($lxtest->{timeout}); + $sel->select_frame_ok("main_window"); + $sel->type_ok("partnumber", "991"); + $sel->type_ok("description", "Handykarten"); + $sel->select_ok("partsgroup", "label=TestSeleniumWarengruppe2"); + $sel->select_ok("buchungsgruppen_id", "label=Standard 16%/19%"); + $sel->click_ok("trigger1"); + $sel->type_ok("listprice", "3,00"); + $sel->type_ok("sellprice", "30,00"); + $sel->select_ok("unit", "label=Stck"); + $sel->type_ok("stock", "100"); + $sel->type_ok("rop", "10"); + $sel->type_ok("bin", "991"); + $sel->click_ok("not_discountable"); + $sel->click_ok("shop"); + $sel->type_ok("price_1", "30,00"); + $sel->type_ok("price_2", "30,00"); + $sel->type_ok("make_1", "TCom"); + $sel->type_ok("model_1", "standard"); + $sel->click_ok("action"); + $sel->wait_for_page_to_load_ok($lxtest->{timeout}); + $sel->click_ok("document.ic.action[1]"); + $sel->wait_for_page_to_load_ok($lxtest->{timeout}); +}; 1; \ No newline at end of file