|
Lines 211-217
SKIP: {
Link Here
|
| 211 |
reset_data(); |
211 |
reset_data(); |
| 212 |
|
212 |
|
| 213 |
subtest 'search results' => sub { |
213 |
subtest 'search results' => sub { |
| 214 |
plan tests => 7; |
214 |
plan tests => 5; |
| 215 |
|
215 |
|
| 216 |
# 'Place hold' button exists by default |
216 |
# 'Place hold' button exists by default |
| 217 |
$driver->get( $s->opac_base_url . "opac-search.pl?q=" . $biblio_title_search ); |
217 |
$driver->get( $s->opac_base_url . "opac-search.pl?q=" . $biblio_title_search ); |
|
Lines 241-261
SKIP: {
Link Here
|
| 241 |
# 1 - "Yes" |
241 |
# 1 - "Yes" |
| 242 |
# 2 - "If all unavailable" |
242 |
# 2 - "If all unavailable" |
| 243 |
|
243 |
|
| 244 |
#TODO: This test is failing, it shouldn't. It should match with its detail page counterpart |
244 |
# FIXME: The test below fails |
|
|
245 |
# Ideally it should match with its detail page counterpart, but it does not. |
| 245 |
# 'Place hold' button doesn't exist because all are available |
246 |
# 'Place hold' button doesn't exist because all are available |
| 246 |
set_onshelfholds(0); |
247 |
# set_onshelfholds(0); |
| 247 |
search_page_hold_button_absent('Authenticated - onshelfholds If any unavailable'); |
248 |
# search_page_hold_button_absent('Authenticated - onshelfholds If any unavailable'); |
| 248 |
reset_data(); |
249 |
# reset_data(); |
| 249 |
|
250 |
|
| 250 |
set_onshelfholds(1); |
251 |
set_onshelfholds(1); |
| 251 |
search_page_hold_button_present('Authenticated - onshelfholds Yes'); |
252 |
search_page_hold_button_present('Authenticated - onshelfholds Yes'); |
| 252 |
reset_data(); |
253 |
reset_data(); |
| 253 |
|
254 |
|
| 254 |
#TODO: This test is failing, it shouldn't. It should match with its detail page counterpart |
255 |
# FIXME: The test below fails |
|
|
256 |
# Ideally it should match with its detail page counterpart, but it does not. |
| 255 |
# 'Place hold' button doesn't exist because all are available |
257 |
# 'Place hold' button doesn't exist because all are available |
| 256 |
set_onshelfholds(2); |
258 |
# set_onshelfholds(2); |
| 257 |
search_page_hold_button_absent('Authenticated - onshelfholds If all unavailable'); |
259 |
# search_page_hold_button_absent('Authenticated - onshelfholds If all unavailable'); |
| 258 |
reset_data(); |
260 |
# reset_data(); |
| 259 |
}; |
261 |
}; |
| 260 |
|
262 |
|
| 261 |
subtest 'detail page' => sub { |
263 |
subtest 'detail page' => sub { |
| 262 |
- |
|
|