From ec410d892bf6ebdcb2beb33bf12543de4811a0ca Mon Sep 17 00:00:00 2001 From: Alessandro Amantini Date: Tue, 3 Dec 2024 16:07:56 +0000 Subject: [PATCH] ISSUE #5257 - enhance test --- frontend/test/tickets/card/ticketsCard.store.spec.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/frontend/test/tickets/card/ticketsCard.store.spec.ts b/frontend/test/tickets/card/ticketsCard.store.spec.ts index 7bc28da3cc..41f8601626 100644 --- a/frontend/test/tickets/card/ticketsCard.store.spec.ts +++ b/frontend/test/tickets/card/ticketsCard.store.spec.ts @@ -135,9 +135,16 @@ describe('Tickets: store', () => { }) it('should reset the state', () => { + const [ticketTitleFilter] = templatesToFilters([]); + const baseFilter: BaseFilter = { + operator: 'eq', + values: [], + }; + const ticketTitleCardFilter: TicketCardFilter = { ...ticketTitleFilter, filter: baseFilter }; dispatch(TicketsCardActions.setSelectedTicket(ticketId)); dispatch(TicketsCardActions.setSelectedTemplate(templateId)); dispatch(TicketsCardActions.setSelectedTicketPin(pinId)); + dispatch(TicketsCardActions.upsertFilter(ticketTitleCardFilter)); dispatch(TicketsCardActions.resetFilters()); dispatch(TicketsCardActions.resetState());