From ee4eafc639e68fe99f7e44e5454991cda8a3d03e Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Sun, 16 Mar 2025 10:57:04 +0100 Subject: [PATCH] test: validate scopeDays --- .../cypress/integration/monitor/monitorTicket.spec.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/test/cypress/integration/monitor/monitorTicket.spec.js b/test/cypress/integration/monitor/monitorTicket.spec.js index c5d2c30a8..db94227c6 100644 --- a/test/cypress/integration/monitor/monitorTicket.spec.js +++ b/test/cypress/integration/monitor/monitorTicket.spec.js @@ -10,7 +10,7 @@ describe('Monitor Tickets Table', () => { cy.intercept('GET', '**/SalesMonitors/salesFilter*').as('filterRequest'); cy.openFilterPanel(); }); - it.only('should open new tab when ctrl+click on client link', () => { + it('should open new tab when ctrl+click on client link', () => { cy.intercept('GET', '**/SalesMonitors/salesFilter*').as('filterRequest'); // Mock window.open behavior since Cypress doesn't support multiple tabs @@ -228,6 +228,15 @@ describe('Monitor Tickets Table', () => { ).click(); cy.get('.summaryHeader').should('exist'); }); + + it.only('clear scopeDays', function () { + cy.get('[data-cy="Days onward_input"]').clear().type('2'); + cy.searchInFilterPanel(); + cy.get('.q-chip__content > span').should('have.text', '"2"'); + cy.get('[data-cy="Days onward_input"]').clear(); + cy.get('[data-cy="Nickname_input"]').clear(); + cy.get('.q-chip__content > span').should('have.text', '"0"'); + }); }); function requestParams(key, value, options = { inWhere: false, like: false }) { cy.wait('@filterRequest').then((interception) => {