Lines 55-60
SKIP: {
Link Here
|
55 |
|
55 |
|
56 |
my $lang = "en"; # The idea here is to loop on all languages |
56 |
my $lang = "en"; # The idea here is to loop on all languages |
57 |
|
57 |
|
|
|
58 |
$driver->set_window_size(3840,1080); |
58 |
# Welcome to the Koha web installer |
59 |
# Welcome to the Koha web installer |
59 |
$s->fill_form({userid => $db_user, password => $db_pass }); |
60 |
$s->fill_form({userid => $db_user, password => $db_pass }); |
60 |
$s->submit_form; |
61 |
$s->submit_form; |
Lines 97-106
SKIP: {
Link Here
|
97 |
#} |
98 |
#} |
98 |
$s->submit_form; |
99 |
$s->submit_form; |
99 |
|
100 |
|
|
|
101 |
for (1..20){ # FIXME This is really ugly, but for an unknown reason the next submit_form is resubmitting the same form. So waiting for the next page to be effectively loaded |
102 |
my $title = $s->driver->get_title; |
103 |
last if $title =~ m|Default data loaded|; |
104 |
sleep 1; |
105 |
} |
106 |
|
100 |
# Default data loaded |
107 |
# Default data loaded |
101 |
$s->submit_form; |
108 |
$s->submit_form; |
102 |
|
109 |
|
103 |
#$s->submit_form; |
|
|
104 |
$s->click( { href => '/installer/onboarding.pl', main => 'installer-step3' } ); |
110 |
$s->click( { href => '/installer/onboarding.pl', main => 'installer-step3' } ); |
105 |
|
111 |
|
106 |
# Create a library |
112 |
# Create a library |
Lines 142-148
SKIP: {
Link Here
|
142 |
like( $s->driver->get_title, qr(Log in to Koha), 'After the onboarding process the user should have landed in the login form page'); |
148 |
like( $s->driver->get_title, qr(Log in to Koha), 'After the onboarding process the user should have landed in the login form page'); |
143 |
$s->submit_form; |
149 |
$s->submit_form; |
144 |
|
150 |
|
145 |
is( $s->driver->get_title, 'Koha staff client', 'The credentials we created should work'); |
151 |
is( $s->driver->get_title, 'Koha staff interface', 'The credentials we created should work'); |
146 |
|
152 |
|
147 |
$driver->quit(); |
153 |
$driver->quit(); |
148 |
}; |
154 |
}; |
149 |
- |
|
|