test: validate scopeDays
This commit is contained in:
parent
8417411efc
commit
ee4eafc639
|
@ -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) => {
|
||||
|
|
Loading…
Reference in New Issue