fix: tests

This commit is contained in:
Javier Segarra 2025-03-05 12:57:28 +01:00
parent c706ac42af
commit c43389b695
3 changed files with 8 additions and 5 deletions

View File

@ -740,7 +740,7 @@ watch(
{{ row?.item?.subName.toUpperCase() }} {{ row?.item?.subName.toUpperCase() }}
</div> </div>
</div> </div>
<FetchedTags :item="row" :max-length="6" /> <FetchedTags :item="row.item" :max-length="6" />
<QPopupProxy v-if="row.id && isTicketEditable"> <QPopupProxy v-if="row.id && isTicketEditable">
<VnInput <VnInput
v-model="row.concept" v-model="row.concept"

View File

@ -69,7 +69,7 @@ describe.only('TicketList', () => {
cy.url().should('match', /\/ticket\/\d+\/summary/); 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) => { cy.intercept('GET', '**/api/Tickets/filter*', (req) => {
req.headers['cache-control'] = 'no-cache'; req.headers['cache-control'] = 'no-cache';
req.headers['pragma'] = 'no-cache'; req.headers['pragma'] = 'no-cache';

View File

@ -183,14 +183,17 @@ describe('TicketSale', () => {
it('change quantity ', () => { it('change quantity ', () => {
const quantity = Math.floor(Math.random() * 100) + 1; const quantity = Math.floor(Math.random() * 100) + 1;
cy.waitForElement(firstRow); cy.waitForElement(firstRow);
cy.dataCy('ticketSaleQuantityInput').clear(); cy.dataCy('ticketSaleQuantityInput').find('input').clear();
cy.dataCy('ticketSaleQuantityInput').type(quantity).trigger('tab'); cy.dataCy('ticketSaleQuantityInput')
.find('input')
.type(quantity)
.trigger('tab');
cy.get('.q-page > :nth-child(6)').click(); cy.get('.q-page > :nth-child(6)').click();
handleVnConfirm(); handleVnConfirm();
cy.get('[data-cy="ticketSaleQuantityInput"]') cy.get('[data-cy="ticketSaleQuantityInput"]')
.find('[data-cy="undefined_input"]') .find('input')
.should('have.value', `${quantity}`); .should('have.value', `${quantity}`);
}); });
}); });