From 307df8f1af4b0577faa4dbcac8072d818bc1ffe4 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Mon, 10 Apr 2023 16:13:04 +0000 Subject: [PATCH] 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 --- t/db_dependent/selenium/regressions.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/db_dependent/selenium/regressions.t b/t/db_dependent/selenium/regressions.t index 8b3e34646b..66d169c1eb 100755 --- a/t/db_dependent/selenium/regressions.t +++ b/t/db_dependent/selenium/regressions.t @@ -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" ); -- 2.39.5