X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/111276a18a6edd391c7d653f77003fe24ae00d8f..9b057fb953934c00c255acc2aaf2f1254beb6860:/t/selenium/testscripts/masterdata/begin/M004AddService.t diff --git a/t/selenium/testscripts/masterdata/begin/M004AddService.t b/t/selenium/testscripts/masterdata/begin/M004AddService.t new file mode 100644 index 000000000..f94e4eb95 --- /dev/null +++ b/t/selenium/testscripts/masterdata/begin/M004AddService.t @@ -0,0 +1,41 @@ +diag("Add service"); + +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=Dienstleistung erfassen"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->select_frame_ok("main_window"); +$sel->type_ok("partnumber", "999"); +$sel->type_ok("description", "Programmierstunde"); +$sel->select_ok("partsgroup", "label=TestSeleniumWarengruppe3"); +$sel->select_ok("buchungsgruppen_id", "label=Standard 16%/19%"); +$sel->type_ok("notes", "Eine Programmierstunde wird immer besser bezahlt"); +$sel->type_ok("listprice", "50,00"); +$sel->type_ok("sellprice", "100"); +$sel->type_ok("lastcost", "45"); +$sel->select_ok("unit", "label=Std"); +$sel->select_ok("payment_id", "label=Schnellzahler/Skonto"); +$sel->type_ok("price_1", "100"); +$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}); +$sel->type_ok("partnumber", "998"); +$sel->type_ok("description", "Telefonstunde"); +$sel->select_ok("partsgroup", "label=TestSeleniumWarengruppe3"); +$sel->select_ok("buchungsgruppen_id", "label=Standard 16%/19%"); +$sel->type_ok("notes", "gibt's beim Telekomunikator"); +$sel->type_ok("listprice", "0,05"); +$sel->type_ok("sellprice", "0,10"); +$sel->type_ok("lastcost", "0,02"); +$sel->select_ok("unit", "label=psch"); +$sel->select_ok("payment_id", "label=Schnellzahler/Skonto"); +$sel->type_ok("price_1", "0,02"); +$sel->type_ok("price_2", "0,1"); +$sel->type_ok("price_1", "0,1"); +$sel->click_ok("document.ic.action[1]"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); \ No newline at end of file