Bugzilla – Attachment 137628 Details for
Bug 31104
Pagination generates HTTP "Link:" header which is over 8192 bytes apache's limit
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31104: Add a selenium test
Bug-31104-Add-a-selenium-test.patch (text/plain), 2.21 KB, created by
Jonathan Druart
on 2022-07-12 13:36:42 UTC
(
hide
)
Description:
Bug 31104: Add a selenium test
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2022-07-12 13:36:42 UTC
Size:
2.21 KB
patch
obsolete
>From 8d390e56ca48983b247abe05c0155b229055589c Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 12 Jul 2022 10:25:25 +0200 >Subject: [PATCH] Bug 31104: Add a selenium test > >--- > t/db_dependent/selenium/patrons_search.t | 20 +++++++++++++++++--- > 1 file changed, 17 insertions(+), 3 deletions(-) > >diff --git a/t/db_dependent/selenium/patrons_search.t b/t/db_dependent/selenium/patrons_search.t >index 5c086b00aba..06e17535721 100755 >--- a/t/db_dependent/selenium/patrons_search.t >+++ b/t/db_dependent/selenium/patrons_search.t >@@ -40,14 +40,14 @@ eval { require Selenium::Remote::Driver; }; > if ( $@ ) { > plan skip_all => "Selenium::Remote::Driver is needed for selenium tests."; > } else { >- plan tests => 1; >+ plan tests => 2; > } > > > my $s = t::lib::Selenium->new; > my $driver = $s->driver; >-my $opac_base_url = $s->opac_base_url; > my $base_url = $s->base_url; >+my $mainpage = $s->base_url . q|mainpage.pl|; > my $builder = t::lib::TestBuilder->new; > > subtest 'Search patrons' => sub { >@@ -152,6 +152,7 @@ subtest 'Search patrons' => sub { > my $total_number_of_patrons = Koha::Patrons->search->count; > my $table_id = "memberresultst"; > >+ $driver->get($mainpage . q|?logout.x=1|); > $s->auth; > C4::Context->set_preference('DefaultPatronSearchFields',""); > my $PatronsPerPage = 15; >@@ -283,6 +284,19 @@ subtest 'Search patrons' => sub { > push @cleanup, $attribute_type, $attribute_type_searchable; > C4::Context->set_preference('DefaultPatronSearchFields',$default_patron_search_fields); > C4::Context->set_preference('PatronsPerPage',$default_patron_per_page); >+}; >+ >+subtest 'Error too long' => sub { >+ plan tests => 1; >+ $driver->get($mainpage . q|?logout.x=1|); >+ $s->auth; > >- $driver->quit(); >+ my $very_long_string = q{some long test to search in patron fields some long test to search in patron fields some long test to search in patron fields}; >+ $driver->get( $base_url . "/members/members-home.pl" ); >+ $s->fill_form( { search_patron_filter => $very_long_string } ); >+ $s->submit_form; >+ $s->wait_for_ajax; >+ ok( 1, "No error when querying a very long search" ); > }; >+ >+$driver->quit(); >-- >2.25.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 31104
:
137240
|
137433
|
137517
|
137610
| 137628