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 commit307df8f1af) Signed-off-by: Jacob O'Mara <jacobomara901@gmail.com> (cherry picked from commitbabebab0cb) Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
d453bb9c5d
commit
6a5b7e974c
|
|
@ -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