Lines 166-172
SKIP: {
Link Here
|
166 |
'Password field is obscured initially' |
166 |
'Password field is obscured initially' |
167 |
); |
167 |
); |
168 |
|
168 |
|
169 |
$driver->find_element('//input[@id="show-password-toggle-checkbox-modal"]')->click; |
169 |
$driver->find_element('//div[@id="loginModal"]//input[@class="show-password-toggle-checkbox"]')->click; |
170 |
|
170 |
|
171 |
is( |
171 |
is( |
172 |
$driver->find_element('//div[@id="loginModal"]//input[@id="mpassword"]')->get_attribute('type'), |
172 |
$driver->find_element('//div[@id="loginModal"]//input[@id="mpassword"]')->get_attribute('type'), |
Lines 174-180
SKIP: {
Link Here
|
174 |
'Password field is shown' |
174 |
'Password field is shown' |
175 |
); |
175 |
); |
176 |
|
176 |
|
177 |
$driver->find_element('//input[@id="show-password-toggle-checkbox-modal"]')->click; |
177 |
$driver->find_element('//div[@id="loginModal"]//input[@class="show-password-toggle-checkbox"]')->click; |
178 |
|
178 |
|
179 |
$driver->find_element('//div[@id="loginModal"]//input[@type="submit"]')->click; |
179 |
$driver->find_element('//div[@id="loginModal"]//input[@type="submit"]')->click; |
180 |
like( $driver->get_title, qr(Koha online catalog), 'Patron without permission should be able to login to the OPAC using the modal' ); |
180 |
like( $driver->get_title, qr(Koha online catalog), 'Patron without permission should be able to login to the OPAC using the modal' ); |
Lines 214-220
SKIP: {
Link Here
|
214 |
'Password field is obscured initially' |
214 |
'Password field is obscured initially' |
215 |
); |
215 |
); |
216 |
|
216 |
|
217 |
$driver->find_element('//input[@id="show-password-toggle-checkbox-main"]')->click; |
217 |
$driver->find_element('//div[@id="login"]//input[@class="show-password-toggle-checkbox"]')->click; |
218 |
|
218 |
|
219 |
is( |
219 |
is( |
220 |
$driver->find_element('//div[@id="login"]//input[@id="password"]')->get_attribute('type'), |
220 |
$driver->find_element('//div[@id="login"]//input[@id="password"]')->get_attribute('type'), |
Lines 222-228
SKIP: {
Link Here
|
222 |
'Password field is shown' |
222 |
'Password field is shown' |
223 |
); |
223 |
); |
224 |
|
224 |
|
225 |
$driver->find_element('//input[@id="show-password-toggle-checkbox-main"]')->click; |
225 |
$driver->find_element('//div[@id="login"]//input[@class="show-password-toggle-checkbox"]')->click; |
226 |
$s->submit_form; |
226 |
$s->submit_form; |
227 |
$driver->find_element('//div[@id="userdetails"]'); |
227 |
$driver->find_element('//div[@id="userdetails"]'); |
228 |
like( $driver->get_title, qr(Your library home), 'Patron without permissions should be able to login to the OPAC using the form on the right'); |
228 |
like( $driver->get_title, qr(Your library home), 'Patron without permissions should be able to login to the OPAC using the form on the right'); |
229 |
- |
|
|