Bug 29311: (follow-up) Fix t/db_dependent/selenium/regressions.t

The test was checking for the value of an input field.
But with this patch set, there is no longer an input, but
a link element with the title. This adjusts the patch to look
for the correct element.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 307df8f1af)
Signed-off-by: Jacob O'Mara <jacobomara901@gmail.com>
This commit is contained in:
Katrin Fischer 2023-04-10 16:13:04 +00:00 committed by Jacob O'Mara
parent f88186b345
commit babebab0cb
1 changed files with 1 additions and 1 deletions

View File

@ -355,7 +355,7 @@ subtest 'OPAC - Suggest for purchase' => sub {
$driver->get( $opac_base_url . "opac-detail.pl?biblionumber=$biblionumber" );
$s->click({ href => '/opac-suggestions.pl?op=add&biblionumber=' . $biblionumber });
is( $driver->find_element('//input[@id="title"]')->get_value(),
is( $driver->find_element('//a[@id="title"]')->get_text(),
$biblio->title,
"Suggestion's title correctly filled in with biblio's title" );