From ab3ac4fdebdc063ec6e80ff95b1a069ba0ba9490 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Sun, 16 Feb 2025 00:50:39 +0100 Subject: [PATCH] fix: remove bad code --- src/pages/Ticket/TicketList.vue | 1 - test/cypress/integration/ticket/ticketList.spec.js | 7 +------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/pages/Ticket/TicketList.vue b/src/pages/Ticket/TicketList.vue index ed2aad37c..fa03b3f6d 100644 --- a/src/pages/Ticket/TicketList.vue +++ b/src/pages/Ticket/TicketList.vue @@ -462,7 +462,6 @@ watch( :array-data-props="{ url: 'Tickets/filter', order: ['shippedDate DESC', 'shippedHour ASC', 'zoneLanding ASC', 'id'], - label: t('Search items'), excludeParams: { ...userParams }, searchRemoveParams: true, exprBuilder, diff --git a/test/cypress/integration/ticket/ticketList.spec.js b/test/cypress/integration/ticket/ticketList.spec.js index 8c03462da..4164d373e 100644 --- a/test/cypress/integration/ticket/ticketList.spec.js +++ b/test/cypress/integration/ticket/ticketList.spec.js @@ -38,12 +38,11 @@ describe('TicketList', () => { cy.get('.summaryBody').should('exist'); }); - it.only('Filter client and create ticket', () => { + it('filter client and create ticket', () => { cy.intercept('GET', /\/api\/Tickets\/filter/).as('ticketSearchbar'); searchResults(); cy.wait('@ticketSearchbar').then((interception) => { const { query } = interception.request; - cy.log('Request query:', query); expect(query).to.have.property('from'); expect(query).to.have.property('to'); expect(query).to.not.have.property('clientFk'); @@ -53,7 +52,6 @@ describe('TicketList', () => { cy.get('[data-cy="Customer ID_input"]').type('1101{enter}'); cy.wait('@ticketFilter').then((interception) => { const { query } = interception.request; - cy.log('Request query:', query); expect(query).to.not.have.property('from'); expect(query).to.not.have.property('to'); expect(query).to.have.property('clientFk'); @@ -64,9 +62,6 @@ describe('TicketList', () => { cy.selectOptionBeta().click(); cy.get('[data-cy="Address_select"]').should('have.value', 'Bruce Wayne'); - // cy.get('[role="listbox"] .q-item:nth-child(1)>.q-item__section--avatar > i') - // .should('have.text', 'star') - // .click(); }); it('Client list create new client', () => { cy.dataCy('vnTableCreateBtn').should('exist');