diff --git a/test/cypress/integration/ticket/ticketBasicData.spec.js b/test/cypress/integration/ticket/ticketBasicData.spec.js index 4a0ddce7d..443e9569b 100644 --- a/test/cypress/integration/ticket/ticketBasicData.spec.js +++ b/test/cypress/integration/ticket/ticketBasicData.spec.js @@ -10,7 +10,7 @@ describe('TicketBasicData', () => { cy.get('.q-page').should('be.visible'); cy.get(':nth-child(2) > div > .text-primary').click(); cy.dataCy('Address_select').click(); - cy.get('.q-btn-group > [data-v-d4506789=""] > .q-btn__content > .q-icon').click(); + cy.get('.q-btn-group ').find('.q-btn__content > .q-icon').click(); cy.get( '[data-cy="CustomerBasicData-menu-item"] > .q-item__section--main', ).click(); @@ -24,18 +24,12 @@ describe('TicketBasicData', () => { cy.get('.q-stepper__tab--active').should('have.class', 'q-stepper__tab--active'); cy.get('tr:nth-child(1)>:nth-child(1)>span').should('have.class', 'link').click(); cy.dataCy('ItemDescriptor').should('exist'); - cy.get('.q-drawer__content > :nth-child(1) > :nth-child(2) > span').should( - 'contain.text', - 'Price: €', - ); - cy.get('.q-drawer__content > :nth-child(1) > :nth-child(3) > span').should( - 'contain.text', - 'New price: €', - ); - cy.get('.q-drawer__content > :nth-child(1) > :nth-child(4) > span').should( - 'contain.text', - 'Difference: €', - ); + + cy.get('.q-drawer__content > :nth-child(1)').each(() => { + cy.get('span').should('contain.text', 'Price: €'); + cy.get('span').should('contain.text', 'New price: €'); + cy.get('span').should('contain.text', 'Difference: €'); + }); cy.get( ':nth-child(3) > .q-radio > .q-radio__inner > .q-radio__bg > .q-radio__check', ).should('have.class', 'q-radio__check');