Bugzilla – Attachment 174687 Details for
Bug 36454
Provide indication if a patron is expired or restricted on patron search autocomplete
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36454: Selenium - test patrons must start with 'test_'
Bug-36454-Selenium---test-patrons-must-start-with-.patch (text/plain), 3.92 KB, created by
Jonathan Druart
on 2024-11-18 13:17:20 UTC
(
hide
)
Description:
Bug 36454: Selenium - test patrons must start with 'test_'
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2024-11-18 13:17:20 UTC
Size:
3.92 KB
patch
obsolete
>From 136cb68a25699567378802c766660d2067b10891 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 18 Nov 2024 14:16:14 +0100 >Subject: [PATCH] Bug 36454: Selenium - test patrons must start with 'test_' > >I usually > > delete from borrowers where surname like "test_" >So I do not need to reset_all > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > t/db_dependent/selenium/patrons_search.t | 20 ++++++++++---------- > 1 file changed, 10 insertions(+), 10 deletions(-) > >diff --git a/t/db_dependent/selenium/patrons_search.t b/t/db_dependent/selenium/patrons_search.t >index 5f4078e229e..e2da452c437 100755 >--- a/t/db_dependent/selenium/patrons_search.t >+++ b/t/db_dependent/selenium/patrons_search.t >@@ -149,8 +149,8 @@ sub setup { > { > class => 'Koha::Patrons', > value => { >- surname => "expired_patron_surname", >- firstname => 'expired_patron', >+ surname => "test_expired_patron_surname", >+ firstname => 'test_expired_patron', > categorycode => $patron_category->categorycode, > branchcode => $library_2->branchcode, > dateexpiry => '2000-12-01', >@@ -316,7 +316,7 @@ subtest 'Search patrons' => sub { > $s->submit_form; > > sleep $DT_delay && $s->wait_for_ajax; >- is( $driver->find_element('//div[@id="'.$table_id.'_wrapper"]//div[@class="dt-info"]')->get_text, sprintf('Showing 1 to %s of %s entries (filtered from %s total entries)', $PatronsPerPage, 26, $total_number_of_patrons) ); >+ is( $driver->find_element('//div[@id="'.$table_id.'_wrapper"]//div[@class="dt-info"]')->get_text, sprintf('Showing 1 to %s of %s entries (filtered from %s total entries)', $PatronsPerPage, 27, $total_number_of_patrons) ); > $driver->find_element('//form[@class="patron_search_form"]//*[@class="btn btn-default clear_search"]')->click(); > $s->submit_form; > sleep $DT_delay && $s->wait_for_ajax; >@@ -480,17 +480,17 @@ subtest 'Search patrons' => sub { > subtest 'expired and restricted badges' => sub { > plan tests => 5; > >- my $patron_28 = Koha::Patrons->search( { surname => 'expired_patron_surname' } )->next; >+ my $patron_28 = Koha::Patrons->search( { surname => 'test_expired_patron_surname' } )->next; > > $driver->get( $base_url . "/members/members-home.pl" ); >- $s->fill_form( { 'searchmember' => 'expired_patron' } ); >+ $s->fill_form( { 'searchmember' => 'test_expired_patron' } ); > > sleep $DT_delay && $s->wait_for_ajax; > > like( > $driver->find_element('//ul[@id="ui-id-2"]/li/a')->get_text, >- qr[\Qexpired_patron_surname\E], >- 'expired_patron is shown' >+ qr[\Qtest_expired_patron_surname\E], >+ 'test_expired_patron is shown' > ); > > is( >@@ -502,7 +502,7 @@ subtest 'Search patrons' => sub { > $patron_28->dateexpiry('2999-12-01')->store; > > $driver->get( $base_url . "/members/members-home.pl" ); >- $s->fill_form( { 'searchmember' => 'expired_patron' } ); >+ $s->fill_form( { 'searchmember' => 'test_expired_patron' } ); > > sleep $DT_delay && $s->wait_for_ajax; > >@@ -515,7 +515,7 @@ subtest 'Search patrons' => sub { > $patron_28->debarred('2048-11-18')->store; > > $driver->get( $base_url . "/members/members-home.pl" ); >- $s->fill_form( { 'searchmember' => 'expired_patron' } ); >+ $s->fill_form( { 'searchmember' => 'test_expired_patron' } ); > > sleep $DT_delay && $s->wait_for_ajax; > >@@ -529,7 +529,7 @@ subtest 'Search patrons' => sub { > $patron_28->dateexpiry('2000-12-01')->store; > > $driver->get( $base_url . "/members/members-home.pl" ); >- $s->fill_form( { 'searchmember' => 'expired_patron' } ); >+ $s->fill_form( { 'searchmember' => 'test_expired_patron' } ); > > sleep $DT_delay && $s->wait_for_ajax; > >-- >2.34.1
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 36454
:
171516
|
171630
|
171631
|
171632
|
171633
|
171839
|
171840
|
174671
|
174682
|
174684
|
174685
|
174686
| 174687