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>
This commit is contained in:
Katrin Fischer 2023-04-10 16:13:04 +00:00 committed by Jonathan Druart
parent 2fc06098d2
commit 307df8f1af
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" );