diff --git a/src/pages/Ticket/Card/TicketSale.vue b/src/pages/Ticket/Card/TicketSale.vue index 456a151a3..61b50230a 100644 --- a/src/pages/Ticket/Card/TicketSale.vue +++ b/src/pages/Ticket/Card/TicketSale.vue @@ -740,7 +740,7 @@ watch( {{ row?.item?.subName.toUpperCase() }} - + { cy.url().should('match', /\/ticket\/\d+\/summary/); }); - it('should show the corerct problems', () => { + it('should show the correct problems', () => { cy.intercept('GET', '**/api/Tickets/filter*', (req) => { req.headers['cache-control'] = 'no-cache'; req.headers['pragma'] = 'no-cache'; diff --git a/test/cypress/integration/ticket/ticketSale.spec.js b/test/cypress/integration/ticket/ticketSale.spec.js index 6dd7a63e7..3ad5ae47b 100644 --- a/test/cypress/integration/ticket/ticketSale.spec.js +++ b/test/cypress/integration/ticket/ticketSale.spec.js @@ -183,14 +183,17 @@ describe('TicketSale', () => { it('change quantity ', () => { const quantity = Math.floor(Math.random() * 100) + 1; cy.waitForElement(firstRow); - cy.dataCy('ticketSaleQuantityInput').clear(); - cy.dataCy('ticketSaleQuantityInput').type(quantity).trigger('tab'); + cy.dataCy('ticketSaleQuantityInput').find('input').clear(); + cy.dataCy('ticketSaleQuantityInput') + .find('input') + .type(quantity) + .trigger('tab'); cy.get('.q-page > :nth-child(6)').click(); handleVnConfirm(); cy.get('[data-cy="ticketSaleQuantityInput"]') - .find('[data-cy="undefined_input"]') + .find('input') .should('have.value', `${quantity}`); }); });