Bug 40129: Fix selenium tests

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit d538261fd4)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
Jonathan Druart 2025-07-04 12:51:41 +02:00 committed by Paul Derscheid
parent 342f6465f2
commit da06ce47c0
No known key found for this signature in database
GPG Key ID: C25F9FD44CED595B
1 changed files with 5 additions and 4 deletions

View File

@ -53,14 +53,15 @@ SKIP: {
'Correctly in search results page'
);
# Get the second li, the first one is "Make a purchase suggestion"
is(
$driver->find_element('//div[@class="suggestion"]/ul/li')->get_text,
$driver->find_element('//div[@class="suggestion"]/ul/li[2]')->get_text,
'Make an interlibrary loan request',
'Placing an ILL request through the OPAC is allowed',
);
# Clicking on the search results page link works
$driver->find_element('//div[@class="suggestion"]/ul/li/a')->click;
$driver->find_element('//div[@class="suggestion"]/ul/li[2]/a')->click;
is(
$driver->find_element('(//nav[@id="breadcrumbs"]/ol/li)[last()]')->get_text,
'New interlibrary loan request',
@ -94,8 +95,8 @@ SKIP: {
is(
scalar @{$link_exists},
0,
'Search page - Place ILL request link should be absent. '
2,
'Search page - Place ILL request link should be present. '
);
# Visiting the create request page directly does not work