From f26ba03239ed0da9c5b1d2c4daab59f315508588 Mon Sep 17 00:00:00 2001 From: Dmytro Melnyshyn Date: Mon, 17 Nov 2025 12:53:33 +0200 Subject: [PATCH] FAT-22565: Fix C17135 --- .../e2e/circulation-log/filter-declared-lost.cy.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/cypress/e2e/circulation-log/filter-declared-lost.cy.js b/cypress/e2e/circulation-log/filter-declared-lost.cy.js index 9a721d8d37..a1123fc69a 100644 --- a/cypress/e2e/circulation-log/filter-declared-lost.cy.js +++ b/cypress/e2e/circulation-log/filter-declared-lost.cy.js @@ -85,18 +85,20 @@ describe('Circulation log', () => { 'C17135 Filter circulation log by declared lost (volaris)', { tags: ['criticalPath', 'volaris', 'C17135'] }, () => { - SearchPane.setFilterOptionFromAccordion('loan', 'Declared lost'); - SearchPane.verifyResultCells(); - SearchPane.checkResultSearch({ + const searchResults = { itemBarcode: item.barcode, circAction: 'Declared lost', + }; + SearchPane.setFilterOptionFromAccordion('loan', 'Declared lost'); + SearchPane.verifyResultCells(); + SearchPane.findResultRowIndexByContent(item.barcode).then((rowIndex) => { + SearchPane.checkResultSearch(searchResults, rowIndex); }); SearchPane.resetResults(); SearchPane.searchByItemBarcode(item.barcode); - SearchPane.checkResultSearch({ - itemBarcode: item.barcode, - circAction: 'Declared lost', + SearchPane.findResultRowIndexByContent(item.barcode).then((rowIndex) => { + SearchPane.checkResultSearch(searchResults, rowIndex); }); }, );