Lines 205-211
SKIP: {
Link Here
|
205 |
); |
205 |
); |
206 |
$driver->find_element('//div[@id="userdetails"]'); |
206 |
$driver->find_element('//div[@id="userdetails"]'); |
207 |
like( |
207 |
like( |
208 |
$driver->get_title, qr(Your library home), |
208 |
$driver->get_title, qr(Your summary), |
209 |
'Patron without permissions should be able to login to the OPAC using the modal' |
209 |
'Patron without permissions should be able to login to the OPAC using the modal' |
210 |
); |
210 |
); |
211 |
|
211 |
|
Lines 257-263
SKIP: {
Link Here
|
257 |
$s->submit_form; |
257 |
$s->submit_form; |
258 |
$driver->find_element('//div[@id="userdetails"]'); |
258 |
$driver->find_element('//div[@id="userdetails"]'); |
259 |
like( |
259 |
like( |
260 |
$driver->get_title, qr(Your library home), |
260 |
$driver->get_title, qr(Your summary), |
261 |
'Patron without permissions should be able to login to the OPAC using the form on the right' |
261 |
'Patron without permissions should be able to login to the OPAC using the form on the right' |
262 |
); |
262 |
); |
263 |
|
263 |
|
Lines 270-276
SKIP: {
Link Here
|
270 |
$s->submit_form; |
270 |
$s->submit_form; |
271 |
$driver->find_element('//div[@id="userdetails"]'); |
271 |
$driver->find_element('//div[@id="userdetails"]'); |
272 |
like( |
272 |
like( |
273 |
$driver->get_title, qr(Your library home), |
273 |
$driver->get_title, qr(Your summary), |
274 |
'Patron with catalogue permission should be able to login to the OPAC' |
274 |
'Patron with catalogue permission should be able to login to the OPAC' |
275 |
); |
275 |
); |
276 |
|
276 |
|
Lines 283-289
SKIP: {
Link Here
|
283 |
$s->submit_form; |
283 |
$s->submit_form; |
284 |
$driver->find_element('//div[@id="userdetails"]'); |
284 |
$driver->find_element('//div[@id="userdetails"]'); |
285 |
like( |
285 |
like( |
286 |
$driver->get_title, qr(Your library home), |
286 |
$driver->get_title, qr(Your summary), |
287 |
'Patron with superlibrarian permission should be able to login to the OPAC' |
287 |
'Patron with superlibrarian permission should be able to login to the OPAC' |
288 |
); |
288 |
); |
289 |
|
289 |
|
Lines 311-317
SKIP: {
Link Here
|
311 |
$s->submit_form; |
311 |
$s->submit_form; |
312 |
|
312 |
|
313 |
# After logged in, the same cookie is reused |
313 |
# After logged in, the same cookie is reused |
314 |
like( $driver->get_title, qr(Your library home) ); |
314 |
like( $driver->get_title, qr(Your summary) ); |
315 |
$cookie = $driver->get_cookie_named('CGISESSID'); |
315 |
$cookie = $driver->get_cookie_named('CGISESSID'); |
316 |
is( $cookie->{value}, $first_sessionID, ); |
316 |
is( $cookie->{value}, $first_sessionID, ); |
317 |
$driver->get( $s->opac_base_url . q|opac-search.pl| ); |
317 |
$driver->get( $s->opac_base_url . q|opac-search.pl| ); |