]> wagnertech.de Git - kivitendo-erp.git/blobdiff - t/old/selenium/testscripts/system/begin/S005AddPaymentConditions.t
Automatisierte Syntaxtests, Framework für spätere Modultests.
[kivitendo-erp.git] / t / old / selenium / testscripts / system / begin / S005AddPaymentConditions.t
diff --git a/t/old/selenium/testscripts/system/begin/S005AddPaymentConditions.t b/t/old/selenium/testscripts/system/begin/S005AddPaymentConditions.t
new file mode 100644 (file)
index 0000000..7f20e4b
--- /dev/null
@@ -0,0 +1,22 @@
+if(!defined $sel) {
+  require "t/selenium/AllTests.t";
+  init_server("singlefileonly",$0);
+  exit(0);
+}
+diag("Add payment conditions");
+SKIP: {
+  start_login();
+  
+  $sel->click_ok("link=Zahlungskonditionen hinzufügen");
+  $sel->wait_for_page_to_load($lxtest->{timeout});
+  $sel->select_frame_ok("main_window");
+  $sel->type_ok("description", "Schnellzahler/Skonto");
+  $sel->type_ok("description_long", "Schnellzahler bekommen sofort ein Skonto von 3% gewährleistet");
+  $sel->type_ok("description_long_" . $lxtest->{lang_id}, "This is a test in elbisch");
+  $sel->type_ok("terms_netto", "100");
+  $sel->type_ok("percent_skonto", "3");
+  $sel->type_ok("terms_skonto", "97");
+  $sel->click_ok("action");
+  $sel->wait_for_page_to_load($lxtest->{timeout});
+};
+1;
\ No newline at end of file