From c967ff154cc3e9155bfc3437157676cbe0383cc9 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 27 Apr 2022 12:34:11 +0200 Subject: [PATCH] Bug 30626: Fix test Signed-off-by: Martin Renvoize Signed-off-by: Nick Clemens --- t/db_dependent/selenium/patrons_search.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/db_dependent/selenium/patrons_search.t b/t/db_dependent/selenium/patrons_search.t index 8c232b2c15..aba9ad4670 100755 --- a/t/db_dependent/selenium/patrons_search.t +++ b/t/db_dependent/selenium/patrons_search.t @@ -238,7 +238,7 @@ subtest 'Search patrons' => sub { # Adding the surname of the first patron in the "Name" column # We expect only 1 result - $s->driver->find_element('//*[@id="'.$table_id.'_filter"]//input')->send_keys($patrons[0]->surname); + $s->driver->find_element('//table[@id="'.$table_id.'"]//input[@placeholder="Name search"]')->send_keys($patrons[0]->surname); $s->wait_for_ajax; is( $driver->find_element('//div[@id="'.$table_id.'_info"]')->get_text, sprintf('Showing 1 to %s of %s entries (filtered from %s total entries)', 1, 1, $total_number_of_patrons) ); -- 2.30.2