1051dfbd9b908fb9ae5c76a0d4cae02f04b3f4ce
[kivitendo-erp.git] / t / selenium / testscripts / administration / end / A999DeleteTestDatabase.t
1 if(!defined $sel) {
2   require "t/selenium/AllTests.t";
3   init_server("singlefileonly",$0);
4   exit(0);
5 }
6
7 $sel->open_ok($lxtest->{lxadmin});
8
9 $sel->title_is("Lx-Office ERP Administration -");
10
11 diag('Lock the system');
12 $sel->click_ok("//input[(\@name=\"action\") and (\@value=\"System sperren\")]");
13 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
14
15 $sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Datenbankadministration\")]");
16 diag("Delete test database '$lxtest->{db}'");
17 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
18 $sel->title_is("Lx-Office ERP / Datenbankadministration -");
19 $sel->type_ok("dbhost", $lxtest->{dbhost});
20 $sel->type_ok("dbport", $lxtest->{dbport});
21 $sel->type_ok("dbuser", $lxtest->{dbuser});
22 $sel->type_ok("dbpasswd", $lxtest->{dbpasswd});
23 $sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Datenbank löschen\")]");
24 $sel->wait_for_page_to_load_ok($lxtest->{timeoutlong});
25 $sel->title_is("Lx-Office ERP Datenbankadministration / Datenbank löschen -");
26
27 $sel->select_ok("db", "label=" . $lxtest->{db});
28
29 $sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Weiter\")]");
30 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
31 $sel->body_text_is("Lx-Office ERP Datenbankadministration / Datenbank löschen Die Datenbank $lxtest->{db} wurde erfolgreich gelöscht.");
32 $sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Weiter\")]");
33 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
34 $sel->title_is("Lx-Office ERP Administration -");
35
36 diag('Unlock the system');
37 $sel->click_ok("//input[(\@name=\"action\") and (\@value=\"System entsperren\")]");
38 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
39 $sel->title_is("Lx-Office ERP Administration -");
40 1;