diff --git a/test/cypress/integration/invoiceIn/invoiceInBasicData.spec.js b/test/cypress/integration/invoiceIn/invoiceInBasicData.spec.js index fc989d6c5..963dda3e2 100644 --- a/test/cypress/integration/invoiceIn/invoiceInBasicData.spec.js +++ b/test/cypress/integration/invoiceIn/invoiceInBasicData.spec.js @@ -1,7 +1,8 @@ /// describe('InvoiceInBasicData', () => { - const selects = '.q-form .q-card>:nth-child(1) > :nth-child(1) > .q-field'; - const appendBtns = 'label button'; + const formInputs = '.q-form > .q-card input'; + const firstFormSelect = '.q-card > .vn-row:nth-child(1) > .q-select'; + const appendBtns = '.q-form label button'; const dialogAppendBtns = '.q-dialog label button'; const dialogInputs = '.q-dialog input'; const dialogActionBtns = '.q-card__actions button'; @@ -12,15 +13,14 @@ describe('InvoiceInBasicData', () => { }); it('should edit the provideer and supplier ref', () => { - cy.selectOption(selects, 'Bros'); - + cy.selectOption(firstFormSelect, 'Bros'); cy.get('[title="Reset"]').click(); cy.get(appendBtns).eq(0).click(); - cy.get('input').eq(2).type(4739); + cy.get(formInputs).eq(1).type(4739); cy.saveCard(); - cy.get(`${selects} input`).eq(0).invoke('val').should('eq', 'Plants nick'); - cy.get('input').eq(2).invoke('val').should('eq', '4739'); + cy.get(`${firstFormSelect} input`).invoke('val').should('eq', 'Plants nick'); + cy.get(formInputs).eq(1).invoke('val').should('eq', '4739'); }); it('should edit the dms data', () => {