| Lines 330-335
          describe("catalogue/detail/holdings_table", () => {
      
      
        Link Here | 
        
          | 330 |             }); | 330 |             }); | 
        
          | 331 |  | 331 |  | 
        
          | 332 |             cy.get(`#${table_id}_wrapper input.dt-input`).clear(); | 332 |             cy.get(`#${table_id}_wrapper input.dt-input`).clear(); | 
            
              |  |  | 333 |             cy.wait("@searchItems"); | 
        
          | 333 |             cy.get(`#${table_id}_wrapper input.dt-input`).type(library_name); | 334 |             cy.get(`#${table_id}_wrapper input.dt-input`).type(library_name); | 
        
          | 334 |  | 335 |  | 
        
          | 335 |             cy.wait("@searchItems").then(interception => { | 336 |             cy.wait("@searchItems").then(interception => { | 
  
    | Lines 342-347
          describe("catalogue/detail/holdings_table", () => {
      
      
        Link Here | 
        
          | 342 |             let item_type_id = items[0].item_type.item_type_id; | 343 |             let item_type_id = items[0].item_type.item_type_id; | 
        
          | 343 |             let item_type_description = items[0].item_type.description; | 344 |             let item_type_description = items[0].item_type.description; | 
        
          | 344 |             cy.get(`#${table_id}_wrapper input.dt-input`).clear(); | 345 |             cy.get(`#${table_id}_wrapper input.dt-input`).clear(); | 
            
              |  |  | 346 |             cy.wait("@searchItems"); | 
        
          | 345 |             cy.get(`#${table_id}_wrapper input.dt-input`).type(item_type_id); | 347 |             cy.get(`#${table_id}_wrapper input.dt-input`).type(item_type_id); | 
        
          | 346 |  | 348 |  | 
        
          | 347 |             cy.wait("@searchItems").then(interception => { | 349 |             cy.wait("@searchItems").then(interception => { | 
  
    | Lines 352-357
          describe("catalogue/detail/holdings_table", () => {
      
      
        Link Here | 
        
          | 352 |             }); | 354 |             }); | 
        
          | 353 |  | 355 |  | 
        
          | 354 |             cy.get(`#${table_id}_wrapper input.dt-input`).clear(); | 356 |             cy.get(`#${table_id}_wrapper input.dt-input`).clear(); | 
            
              |  |  | 357 |             cy.wait("@searchItems"); | 
        
          | 355 |             cy.get(`#${table_id}_wrapper input.dt-input`).type( | 358 |             cy.get(`#${table_id}_wrapper input.dt-input`).type( | 
        
          | 356 |                 item_type_description | 359 |                 item_type_description | 
        
          | 357 |             ); | 360 |             ); | 
  
    | Lines 362-367
          describe("catalogue/detail/holdings_table", () => {
      
      
        Link Here | 
        
          | 362 |                     new RegExp(`"me.item_type_id":\\["${item_type_id}"\\]`) | 365 |                     new RegExp(`"me.item_type_id":\\["${item_type_id}"\\]`) | 
        
          | 363 |                 ); | 366 |                 ); | 
        
          | 364 |             }); | 367 |             }); | 
            
              |  |  | 368 |  | 
            
              | 369 |             cy.viewport(2999, 2999); | 
            
              | 370 |             cy.get(`#${table_id}_wrapper input.dt-input`).clear(); | 
            
              | 371 |             cy.wait("@searchItems"); | 
            
              | 372 |             // Show filters if not there already | 
            
              | 373 |             cy.get(`.${table_id}_table_controls .show_filters`) | 
            
              | 374 |                 .then(link => { | 
            
              | 375 |                     if (link.is(":visible")) { | 
            
              | 376 |                         cy.wrap(link).click(); | 
            
              | 377 |                         cy.wait("@searchItems"); | 
            
              | 378 |                     } | 
            
              | 379 |                 }) | 
            
              | 380 |                 .then(() => { | 
            
              | 381 |                     // Select first (non-empty) option | 
            
              | 382 |                     cy.get( | 
            
              | 383 |                         `#${table_id}_wrapper th#holdings_itype select` | 
            
              | 384 |                     ).then(select => { | 
            
              | 385 |                         const raw_value = select.find("option").eq(1).val(); | 
            
              | 386 |                         expect(raw_value).to.match(/^\^/); | 
            
              | 387 |                         expect(raw_value).to.match(/\$$/); | 
            
              | 388 |                         item_type_id = raw_value.replace(/^\^|\$$/g, ""); // Remove ^ and $ | 
            
              | 389 |                     }); | 
            
              | 390 |                     cy.get( | 
            
              | 391 |                         `#${table_id}_wrapper th#holdings_itype select option` | 
            
              | 392 |                     ) | 
            
              | 393 |                         .eq(1) | 
            
              | 394 |                         .then(o => { | 
            
              | 395 |                             cy.get( | 
            
              | 396 |                                 `#${table_id}_wrapper th#holdings_itype select` | 
            
              | 397 |                             ).select(o.val(), { force: true }); | 
            
              | 398 |                         }); | 
            
              | 399 |                     cy.wait("@searchItems").then(interception => { | 
            
              | 400 |                         const q = interception.request.query.q; | 
            
              | 401 |                         expect(q).to.match( | 
            
              | 402 |                             new RegExp(`{"me.item_type_id":"${item_type_id}"}`) | 
            
              | 403 |                         ); | 
            
              | 404 |                     }); | 
            
              | 405 |                 }); | 
        
          | 365 |         }); | 406 |         }); | 
        
          | 366 |     }); | 407 |     }); | 
        
          | 367 | }); | 408 | }); | 
            
              | 368 | -  |  |  |