Bugzilla – Attachment 158061 Details for
Bug 34227
Add persistent selections and batch operations to item search
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34227: (follow-up) Adjust selenium tests
Bug-34227-follow-up-Adjust-selenium-tests.patch (text/plain), 3.10 KB, created by
Tomás Cohen Arazi (tcohen)
on 2023-10-30 12:39:56 UTC
(
hide
)
Description:
Bug 34227: (follow-up) Adjust selenium tests
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2023-10-30 12:39:56 UTC
Size:
3.10 KB
patch
obsolete
>From af8a332b9ca1f6dec710a3b28ca37c2cf3005a38 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >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 <tomascohen@theke.io> >--- > 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 34227
:
153184
|
153208
|
153285
|
156007
|
156008
| 158061