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:
parent
f88186b345
commit
babebab0cb
|
|
@ -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" );
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue