diff --git a/test/cypress/integration/invoiceIn/invoiceInList.spec.js b/test/cypress/integration/invoiceIn/invoiceInList.spec.js index bd722edab..60d8c5be1 100644 --- a/test/cypress/integration/invoiceIn/invoiceInList.spec.js +++ b/test/cypress/integration/invoiceIn/invoiceInList.spec.js @@ -1,8 +1,8 @@ /// describe('InvoiceInList', () => { const firstCard = '.q-card:nth-child(1)'; - const firstId = - '.q-card:nth-child(1) .list-items > .vn-label-value:first-child > .value > span'; + const firstChipId = + ':nth-child(1) > :nth-child(1) > .justify-between > .flex > .q-chip > .q-chip__content'; const firstDetailBtn = '.q-card:nth-child(1) .q-btn:nth-child(2)'; const summaryHeaders = '.summaryBody .header'; @@ -12,9 +12,10 @@ describe('InvoiceInList', () => { }); it('should redirect on clicking a invoice', () => { - cy.get(firstId) + cy.get(firstChipId) .invoke('text') - .then((id) => { + .then((content) => { + const id = content.substring(4); cy.get(firstCard).click(); cy.url().should('include', `/invoice-in/${id}/summary`); });