Bugzilla – Attachment 137610 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), 1.56 KB, created by
Jonathan Druart
on 2022-07-12 08:25:47 UTC
(
hide
)
Description:
Bug 31104: Add a selenium test
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2022-07-12 08:25:47 UTC
Size:
1.56 KB
patch
obsolete
>From 3d2884d2bb96a7ad410ef1a12a78992203a456d5 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 | 15 +++++++++++++-- > 1 file changed, 13 insertions(+), 2 deletions(-) > >diff --git a/t/db_dependent/selenium/patrons_search.t b/t/db_dependent/selenium/patrons_search.t >index cd635991929..e401e6ae743 100755 >--- a/t/db_dependent/selenium/patrons_search.t >+++ b/t/db_dependent/selenium/patrons_search.t >@@ -40,7 +40,7 @@ eval { require Selenium::Remote::Driver; }; > if ( $@ ) { > plan skip_all => "Selenium::Remote::Driver is needed for selenium tests."; > } else { >- plan tests => 1; >+ plan tests => 2; > } > > >@@ -282,6 +282,17 @@ 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); >+}; > >- $driver->quit(); >+subtest 'Error too long' => sub { >+ plan tests => 1; >+ 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}; >+ $s->auth; >+ $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