From af8a332b9ca1f6dec710a3b28ca37c2cf3005a38 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 30 Oct 2023 09:38:46 -0300 Subject: [PATCH] Bug 34227: (follow-up) Adjust selenium tests This patch adjusts the selenium tests to address the renamed ID for the elements. Signed-off-by: Tomas Cohen Arazi --- t/db_dependent/selenium/patrons_search.t | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/t/db_dependent/selenium/patrons_search.t b/t/db_dependent/selenium/patrons_search.t index 2b327a30e3e..7b8630ddb9a 100755 --- a/t/db_dependent/selenium/patrons_search.t +++ b/t/db_dependent/selenium/patrons_search.t @@ -297,17 +297,17 @@ subtest 'Search patrons' => sub { $s->fill_form( { search_patron_filter => 'test_patron' } ); $s->submit_form; $s->wait_for_ajax; - my $patron_selected_text = $driver->find_element('//div[@id="patron_search_selected"]/span')->get_text; + my $patron_selected_text = $driver->find_element('//div[@id="table_search_selections"]/span')->get_text; is( $patron_selected_text, "", "Patrons selected is not displayed" ); my @checkboxes = $driver->find_elements( '//input[@type="checkbox"][@name="borrowernumber"]'); $checkboxes[2]->click; - $patron_selected_text = $driver->find_element('//div[@id="patron_search_selected"]/span')->get_text; + $patron_selected_text = $driver->find_element('//div[@id="table_search_selections"]/span')->get_text; is( $patron_selected_text, "Patrons selected: 1", "One patron selected" ); $checkboxes[4]->click; - $patron_selected_text = $driver->find_element('//div[@id="patron_search_selected"]/span')->get_text; + $patron_selected_text = $driver->find_element('//div[@id="table_search_selections"]/span')->get_text; is( $patron_selected_text, "Patrons selected: 2", "Two patrons are selected" ); $driver->find_element('//*[@id="memberresultst_next"]')->click; @@ -315,7 +315,7 @@ subtest 'Search patrons' => sub { @checkboxes = $driver->find_elements( '//input[@type="checkbox"][@name="borrowernumber"]'); $checkboxes[0]->click; - $patron_selected_text = $driver->find_element('//div[@id="patron_search_selected"]/span')->get_text; + $patron_selected_text = $driver->find_element('//div[@id="table_search_selections"]/span')->get_text; is( $patron_selected_text, "Patrons selected: 3", "Three patrons are selected" ); # Perform another search @@ -323,7 +323,7 @@ subtest 'Search patrons' => sub { $s->fill_form( { search_patron_filter => 'test_patron' } ); $s->submit_form; $s->wait_for_ajax; - $patron_selected_text = $driver->find_element('//div[@id="patron_search_selected"]/span')->get_text; + $patron_selected_text = $driver->find_element('//div[@id="table_search_selections"]/span')->get_text; is( $patron_selected_text, "Patrons selected: 3", "Three patrons still selected" ); $driver->find_element('//*[@id="patronlist-menu"]')->click; -- 2.42.0