X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/111276a18a6edd391c7d653f77003fe24ae00d8f..9b057fb953934c00c255acc2aaf2f1254beb6860:/t/selenium/testscripts/administration/end/E999DeleteTestDatabase.t diff --git a/t/selenium/testscripts/administration/end/E999DeleteTestDatabase.t b/t/selenium/testscripts/administration/end/E999DeleteTestDatabase.t new file mode 100644 index 000000000..53ee427e9 --- /dev/null +++ b/t/selenium/testscripts/administration/end/E999DeleteTestDatabase.t @@ -0,0 +1,33 @@ + +$sel->open_ok($lxtest->{lxadmin}); +$sel->title_is("Lx-Office ERP Administration -"); + +diag('Lock the system'); +$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"System sperren\")]"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); + +$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Datenbankadministration\")]"); +diag("Delete test database '$lxtest->{db}'"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->title_is("Lx-Office ERP / Datenbankadministration -"); +$sel->type_ok("dbhost", $lxtest->{dbhost}); +$sel->type_ok("dbport", $lxtest->{dbport}); +$sel->type_ok("dbuser", $lxtest->{dbuser}); +$sel->type_ok("dbpasswd", $lxtest->{dbpasswd}); +$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Datenbank löschen\")]"); +$sel->wait_for_page_to_load_ok($lxtest->{timeoutlong}); +$sel->title_is("Lx-Office ERP Datenbankadministration / Datenbank löschen -"); + +$sel->select_ok("db", "label=" . $lxtest->{db}); + +$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Weiter\")]"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->body_text_is("Lx-Office ERP Datenbankadministration / Datenbank löschen Die Datenbank $lxtest->{db} wurde erfolgreich gelöscht."); +$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Weiter\")]"); +$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->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->title_is("Lx-Office ERP Administration -"); \ No newline at end of file