| 
      
            Lines 62-70
          my $branchname              = q|<strong>just 'another" library</strong> \123 ❤
      
      
        Link Here
      
     | 
  
        
          | 62 | 
          my $firstname               = q|<strong>fir's"tname</strong> \123 ❤|;  | 
          62 | 
          my $firstname               = q|<strong>fir's"tname</strong> \123 ❤|;  | 
        
        
          | 63 | 
          my $address                 = q|<strong>add'res"s</strong> \123 ❤|;  | 
          63 | 
          my $address                 = q|<strong>add'res"s</strong> \123 ❤|;  | 
        
        
          | 64 | 
          my $email                   = q|a<strong>bad_email</strong>@example\123 ❤.com|;  | 
          64 | 
          my $email                   = q|a<strong>bad_email</strong>@example\123 ❤.com|;  | 
        
          
            
              | 65 | 
              my ($attribute_type, $attribute_type_searchable_1, $attribute_type_searchable_2, $attribute_type_searchable_not_default);  | 
              65 | 
              my (  | 
            
            
               | 
               | 
              66 | 
                  $attribute_type, $attribute_type_searchable_1, $attribute_type_searchable_2,  | 
            
            
              | 67 | 
                  $attribute_type_searchable_not_default, $patron_category, $library  | 
            
            
              | 68 | 
              );  | 
            
        
          | 66 | 
          sub setup { | 
          69 | 
          sub setup { | 
        
          
            
              | 67 | 
                  my $patron_category = $builder->build_object(  | 
              70 | 
                  $patron_category = $builder->build_object(  | 
            
        
          | 68 | 
                  { | 
          71 | 
                  { | 
        
        
          | 69 | 
                      class => 'Koha::Patron::Categories',  | 
          72 | 
                      class => 'Koha::Patron::Categories',  | 
        
        
          | 70 | 
                      value => { category_type => 'A' } | 
          73 | 
                      value => { category_type => 'A' } | 
        
  
    | 
      
            Lines 72-78
          sub setup {
      
      
        Link Here
      
     | 
  
        
          | 72 | 
              );  | 
          75 | 
              );  | 
        
        
          | 73 | 
              push @cleanup, $patron_category;  | 
          76 | 
              push @cleanup, $patron_category;  | 
        
        
          | 74 | 
           | 
          77 | 
           | 
        
          
            
              | 75 | 
                  my $library = $builder->build_object(  | 
              78 | 
                  $library = $builder->build_object(  | 
            
        
          | 76 | 
                  { class => 'Koha::Libraries', value => { branchname => $branchname } } | 
          79 | 
                  { class => 'Koha::Libraries', value => { branchname => $branchname } } | 
        
        
          | 77 | 
              );  | 
          80 | 
              );  | 
        
        
          | 78 | 
              push @cleanup, $library;  | 
          81 | 
              push @cleanup, $library;  | 
        
  
    | 
      
            Lines 207-213
          sub teardown {
      
      
        Link Here
      
     | 
  
        
          | 207 | 
          }  | 
          210 | 
          }  | 
        
        
          | 208 | 
           | 
          211 | 
           | 
        
        
          | 209 | 
          subtest 'Search patrons' => sub { | 
          212 | 
          subtest 'Search patrons' => sub { | 
        
          
            
              | 210 | 
                  plan tests => 28;  | 
              213 | 
                  plan tests => 29;  | 
            
        
          | 211 | 
           | 
          214 | 
           | 
        
        
          | 212 | 
              setup();  | 
          215 | 
              setup();  | 
        
        
          | 213 | 
              my $total_number_of_patrons = Koha::Patrons->search->count;  | 
          216 | 
              my $total_number_of_patrons = Koha::Patrons->search->count;  | 
        
  
    | 
      
            Lines 353-358
          subtest 'Search patrons' => sub {
      
      
        Link Here
      
     | 
  
        
          | 353 | 
              sleep $DT_delay && $s->wait_for_ajax;  | 
          356 | 
              sleep $DT_delay && $s->wait_for_ajax;  | 
        
        
          | 354 | 
              is( $driver->find_element('//div[@id="'.$table_id.'_info"]')->get_text, sprintf('Showing 1 to %s of %s entries (filtered from %s total entries)', 1, 1, $total_number_of_patrons), 'Refining with header filters works to further filter the original query' ); | 
          357 | 
              is( $driver->find_element('//div[@id="'.$table_id.'_info"]')->get_text, sprintf('Showing 1 to %s of %s entries (filtered from %s total entries)', 1, 1, $total_number_of_patrons), 'Refining with header filters works to further filter the original query' ); | 
        
        
          | 355 | 
           | 
          358 | 
           | 
        
            
               | 
               | 
              359 | 
                  subtest 'limited categories' => sub { | 
            
            
              | 360 | 
               | 
            
            
              | 361 | 
                      plan tests => 1;  | 
            
            
              | 362 | 
               | 
            
            
              | 363 | 
                      $patron_category->replace_library_limits( [$library->id] );  | 
            
            
              | 364 | 
                      C4::Context->set_preference( 'PatronsPerPage', 5 );  | 
            
            
              | 365 | 
                      $driver->get( $base_url . "/members/members-home.pl" );  | 
            
            
              | 366 | 
                      clear_filters();  | 
            
            
              | 367 | 
                      $s->fill_form( { 'search_patron_filter' => 'test_patron' } ); | 
            
            
              | 368 | 
                      $s->submit_form;  | 
            
            
              | 369 | 
                      sleep $DT_delay && $s->wait_for_ajax;  | 
            
            
              | 370 | 
                      is( $driver->find_element('//div[@id="'.$table_id.'_info"]')->get_text, sprintf('Showing 1 to %s of %s entries (filtered from %s total entries)', $PatronsPerPage, 26, $total_number_of_patrons), 'Search works when category of patrons is limited to a library we are not signed in at' ); | 
            
            
              | 371 | 
               | 
            
            
              | 372 | 
                  };  | 
            
            
              | 373 | 
               | 
            
        
          | 356 | 
              subtest 'remember_search' => sub { | 
          374 | 
              subtest 'remember_search' => sub { | 
        
        
          | 357 | 
           | 
          375 | 
           | 
        
        
          | 358 | 
                  plan tests => 7;  | 
          376 | 
                  plan tests => 7;  | 
        
            
              | 359 | 
              -   | 
               | 
               |