|
Lines 53-66
SKIP: {
Link Here
|
| 53 |
'Correctly in search results page' |
53 |
'Correctly in search results page' |
| 54 |
); |
54 |
); |
| 55 |
|
55 |
|
|
|
56 |
# Get the second li, the first one is "Make a purchase suggestion" |
| 56 |
is( |
57 |
is( |
| 57 |
$driver->find_element('//div[@class="suggestion"]/ul/li')->get_text, |
58 |
$driver->find_element('//div[@class="suggestion"]/ul/li[2]')->get_text, |
| 58 |
'Make an interlibrary loan request', |
59 |
'Make an interlibrary loan request', |
| 59 |
'Placing an ILL request through the OPAC is allowed', |
60 |
'Placing an ILL request through the OPAC is allowed', |
| 60 |
); |
61 |
); |
| 61 |
|
62 |
|
| 62 |
# Clicking on the search results page link works |
63 |
# Clicking on the search results page link works |
| 63 |
$driver->find_element('//div[@class="suggestion"]/ul/li/a')->click; |
64 |
$driver->find_element('//div[@class="suggestion"]/ul/li[2]/a')->click; |
| 64 |
is( |
65 |
is( |
| 65 |
$driver->find_element('(//nav[@id="breadcrumbs"]/ol/li)[last()]')->get_text, |
66 |
$driver->find_element('(//nav[@id="breadcrumbs"]/ol/li)[last()]')->get_text, |
| 66 |
'New interlibrary loan request', |
67 |
'New interlibrary loan request', |
|
Lines 94-101
SKIP: {
Link Here
|
| 94 |
|
95 |
|
| 95 |
is( |
96 |
is( |
| 96 |
scalar @{$link_exists}, |
97 |
scalar @{$link_exists}, |
| 97 |
0, |
98 |
2, |
| 98 |
'Search page - Place ILL request link should be absent. ' |
99 |
'Search page - Place ILL request link should be present. ' |
| 99 |
); |
100 |
); |
| 100 |
|
101 |
|
| 101 |
# Visiting the create request page directly does not work |
102 |
# Visiting the create request page directly does not work |
| 102 |
- |
|
|