]> wagnertech.de Git - kivitendo-erp.git/blobdiff - t/selenium/testscripts/administration/begin/A001CreateTestDatabase.t
Angepasst an Einzelfalltests und einfügen von TODO Blocks, damit bei der nächsten...
[kivitendo-erp.git] / t / selenium / testscripts / administration / begin / A001CreateTestDatabase.t
index c45e1bc7fdc03070c50d78d86d38e3a9d4a2dd26..7a568f0e80aa975b48bc67c30ad7a2e820b18a99 100644 (file)
@@ -1,5 +1,9 @@
 ### Create Database
-
+if(!defined $sel) {
+  require "t/selenium/AllTests.t";
+  init_server("singlefileonly", $0);
+  exit(0);
+}
 $sel->open_ok($lxtest->{lxadmin});
 
 if($sel->get_title() eq "") {
@@ -11,7 +15,7 @@ if($sel->get_title() eq "") {
 $sel->title_is("Lx-Office ERP Administration -");
 
 diag('Lock the system');
-$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"System sperren\")]");
+$sel->click_ok("document.forms[0].action[3]"); # Button für System sperren
 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
 
 $sel->title_is("Lx-Office ERP Administration -");
@@ -38,6 +42,7 @@ $sel->wait_for_page_to_load_ok($lxtest->{timeout});
 $sel->title_is("Lx-Office ERP Administration -");
 
 diag('Unlock the system');
-$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"System entsperren\")]");
+$sel->click_ok("document.forms[0].action[3]"); # BUtton für System entsperren
 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
 $sel->title_is("Lx-Office ERP Administration -");
+1;
\ No newline at end of file