View | Details | Raw Unified | Return to bug 31104
Collapse All | Expand All

(-)a/t/db_dependent/selenium/patrons_search.t (-3 / +13 lines)
Lines 40-46 eval { require Selenium::Remote::Driver; }; Link Here
40
if ( $@ ) {
40
if ( $@ ) {
41
    plan skip_all => "Selenium::Remote::Driver is needed for selenium tests.";
41
    plan skip_all => "Selenium::Remote::Driver is needed for selenium tests.";
42
} else {
42
} else {
43
    plan tests => 1;
43
    plan tests => 2;
44
}
44
}
45
45
46
46
Lines 282-287 subtest 'Search patrons' => sub { Link Here
282
    push @cleanup, $attribute_type, $attribute_type_searchable;
282
    push @cleanup, $attribute_type, $attribute_type_searchable;
283
    C4::Context->set_preference('DefaultPatronSearchFields',$default_patron_search_fields);
283
    C4::Context->set_preference('DefaultPatronSearchFields',$default_patron_search_fields);
284
    C4::Context->set_preference('PatronsPerPage',$default_patron_per_page);
284
    C4::Context->set_preference('PatronsPerPage',$default_patron_per_page);
285
};
285
286
286
    $driver->quit();
287
subtest 'Error too long' => sub {
288
    plan tests => 1;
289
    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};
290
    $s->auth;
291
    $driver->get( $base_url . "/members/members-home.pl" );
292
    $s->fill_form( { search_patron_filter => $very_long_string } );
293
    $s->submit_form;
294
    $s->wait_for_ajax;
295
    ok( 1, "No error when querying a very long search" );
287
};
296
};
288
- 
297
298
$driver->quit();

Return to bug 31104