| Lines 362-367
          describe("catalogue/detail/holdings_table", () => {
      
      
        Link Here | 
        
          | 362 |                     new RegExp(`"me.item_type_id":\\["${item_type_id}"\\]`) | 362 |                     new RegExp(`"me.item_type_id":\\["${item_type_id}"\\]`) | 
        
          | 363 |                 ); | 363 |                 ); | 
        
          | 364 |             }); | 364 |             }); | 
            
              |  |  | 365 |  | 
            
              | 366 |             cy.get(`#${table_id}_wrapper input.dt-input`).clear(); | 
            
              | 367 |             // Show filters if not there already | 
            
              | 368 |             cy.get(`.${table_id}_table_controls .show_filters`).then(link => { | 
            
              | 369 |                 if (link.is(":visible")) { | 
            
              | 370 |                     cy.wrap(link).click(); | 
            
              | 371 |                     cy.wait("@searchItems"); | 
            
              | 372 |                 } | 
            
              | 373 |             }); | 
            
              | 374 |             // Select first (non-empty) option | 
            
              | 375 |             cy.get(`#${table_id}_wrapper th#holdings_itype select`).then( | 
            
              | 376 |                 select => { | 
            
              | 377 |                     item_type_id = select.find("option").eq(1).val(); | 
            
              | 378 |                     expect(item_type_id).to.match(/^\^/); | 
            
              | 379 |                     expect(item_type_id).to.match(/\$$/); | 
            
              | 380 |                     cy.wrap(select).select(item_type_id); | 
            
              | 381 |                     item_type_id = item_type_id.replace(/^\^|\$$/g, ""); // remove ^ and $ | 
            
              | 382 |                 } | 
            
              | 383 |             ); | 
            
              | 384 |             cy.wait("@searchItems").then(interception => { | 
            
              | 385 |                 const q = interception.request.query.q; | 
            
              | 386 |                 expect(q).to.match( | 
            
              | 387 |                     new RegExp(`{"me.item_type_id":"${item_type_id}"}`) | 
            
              | 388 |                 ); | 
            
              | 389 |             }); | 
        
          | 365 |         }); | 390 |         }); | 
        
          | 366 |     }); | 391 |     }); | 
        
          | 367 | }); | 392 | }); | 
            
              | 368 | -  |  |  |