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

(-)a/t/db_dependent/selenium/patrons_search.t (-4 / +5 lines)
Lines 568-574 subtest 'Search patrons' => sub { Link Here
568
};
568
};
569
569
570
subtest 'Search patrons in modal' => sub {
570
subtest 'Search patrons in modal' => sub {
571
    plan tests => 2;
571
    plan tests => 3;
572
572
573
    setup();
573
    setup();
574
574
Lines 836-841 subtest 'Search patrons in modal' => sub { Link Here
836
    };
836
    };
837
837
838
    subtest 'no clause for extended_attributes when none are default searchable' => sub {
838
    subtest 'no clause for extended_attributes when none are default searchable' => sub {
839
        plan tests => 2;
840
839
        $attribute_type_searchable_1->update( { searched_by_default => 0 } );
841
        $attribute_type_searchable_1->update( { searched_by_default => 0 } );
840
        $attribute_type_searchable_2->update( { searched_by_default => 0 } );
842
        $attribute_type_searchable_2->update( { searched_by_default => 0 } );
841
843
Lines 843-849 subtest 'Search patrons in modal' => sub { Link Here
843
845
844
        $driver->execute_script( <<'EOF', 'capture_ajax_data' );
846
        $driver->execute_script( <<'EOF', 'capture_ajax_data' );
845
jQuery( document ).on( "ajaxSend", function( event, request, settings ) {
847
jQuery( document ).on( "ajaxSend", function( event, request, settings ) {
846
  jQuery('#patron_search_form').after('<div id="capture_ajax_data_was_executed"></div>');
848
  jQuery('.patron_search_form').after('<div id="capture_ajax_data_was_executed"></div>');
847
  var url = new URL(window.location.origin + settings.url);
849
  var url = new URL(window.location.origin + settings.url);
848
  var parts = url.search.substring(1).split('&');
850
  var parts = url.search.substring(1).split('&');
849
  var q;
851
  var q;
Lines 860-866 jQuery( document ).on( "ajaxSend", function( event, request, settings ) { Link Here
860
    for (var j = 0; q0 && j < q0.length; j++) {
862
    for (var j = 0; q0 && j < q0.length; j++) {
861
       for (var k = 0; k < q0[j].length; k++) {
863
       for (var k = 0; k < q0[j].length; k++) {
862
           if (q0[j][k].hasOwnProperty('extended_attributes.code')) {
864
           if (q0[j][k].hasOwnProperty('extended_attributes.code')) {
863
               jQuery('#patron_search_form').after('<div id="had_extended_attributes_clause"></div>');
865
               jQuery('.patron_search_form').after('<div id="had_extended_attributes_clause"></div>');
864
           }
866
           }
865
       }
867
       }
866
    }
868
    }
867
- 

Return to bug 36025