From cb1f717fe0b5f9966ca3380b9ad09eb49043a094 Mon Sep 17 00:00:00 2001 From: Jon Date: Wed, 4 Dec 2024 12:26:04 +0100 Subject: [PATCH] fix: refs #8219 requested changes --- .../integration/invoiceOut/invoiceOutMakeInvoice.spec.js | 2 +- .../integration/invoiceOut/invoiceOutSummary.spec.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/cypress/integration/invoiceOut/invoiceOutMakeInvoice.spec.js b/test/cypress/integration/invoiceOut/invoiceOutMakeInvoice.spec.js index 56f103a8c..1a170bef0 100644 --- a/test/cypress/integration/invoiceOut/invoiceOutMakeInvoice.spec.js +++ b/test/cypress/integration/invoiceOut/invoiceOutMakeInvoice.spec.js @@ -10,7 +10,7 @@ describe('InvoiceOut manual invoice', () => { }); it('should create an invoice from a ticket and go to that invoice', () => { - cy.get('[label="Customer ID"]').type('1101{enter}'); + cy.searchByLabel('Customer ID', '1101'); cy.get( '[data-q-vs-anchor=""] > :nth-child(1) > .q-checkbox > .q-checkbox__inner' ).click(); diff --git a/test/cypress/integration/invoiceOut/invoiceOutSummary.spec.js b/test/cypress/integration/invoiceOut/invoiceOutSummary.spec.js index ec9e41198..342ee788a 100644 --- a/test/cypress/integration/invoiceOut/invoiceOutSummary.spec.js +++ b/test/cypress/integration/invoiceOut/invoiceOutSummary.spec.js @@ -15,7 +15,7 @@ describe('InvoiceOut summary', () => { it('should generate the invoice PDF', () => { cy.get('#searchbar input').type('T1111111{enter}'); - cy.get('[data-cy="descriptor-more-opts"] > .q-btn__content > .q-icon').click(); + cy.dataCy('descriptor-more-opts').click(); cy.get('.q-menu > .q-list > :nth-child(6)').click(); cy.dataCy('VnConfirm_confirm').click(); cy.get(notification).should( @@ -26,7 +26,7 @@ describe('InvoiceOut summary', () => { it('should refund the invoice ', () => { cy.get('#searchbar input').type('T1111111{enter}'); - cy.get('[data-cy="descriptor-more-opts"] > .q-btn__content > .q-icon').click(); + cy.get('descriptor-more-opts').click(); cy.get('.q-menu > .q-list > :nth-child(7)').click(); cy.get('#q-portal--menu--3 > .q-menu > .q-list > :nth-child(2)').click(); cy.get(notification).should( @@ -37,7 +37,7 @@ describe('InvoiceOut summary', () => { it('should delete an invoice ', () => { cy.get('#searchbar input').type('T2222222{enter}'); - cy.get('[data-cy="descriptor-more-opts"] > .q-btn__content > .q-icon').click(); + cy.dataCy('descriptor-more-opts').click(); cy.get('.q-menu > .q-list > :nth-child(4)').click(); cy.dataCy('VnConfirm_confirm').click(); cy.get(notification).should('contains.text', 'InvoiceOut deleted'); @@ -45,7 +45,7 @@ describe('InvoiceOut summary', () => { it('should transfer the invoice ', () => { cy.get('#searchbar input').type('T1111111{enter}'); - cy.get('[data-cy="descriptor-more-opts"] > .q-btn__content > .q-icon').click(); + cy.dataCy('descriptor-more-opts').click(); cy.get('.q-menu > .q-list > :nth-child(1)').click(); cy.fillInForm(transferInvoice); cy.get('.q-mt-lg > .q-btn').click();