From 07bd04ebb762f22a6ec287c4e07757445fca87e1 Mon Sep 17 00:00:00 2001 From: Adhitya Mamallan Date: Fri, 13 Dec 2024 17:04:43 +0530 Subject: [PATCH] Fix merge conflicts --- .../__tests__/domain-workflows-basic-filters.test.tsx | 4 ++-- .../__tests__/domain-workflows-basic-table.test.tsx | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/views/domain-workflows-basic/domain-workflows-basic-filters/__tests__/domain-workflows-basic-filters.test.tsx b/src/views/domain-workflows-basic/domain-workflows-basic-filters/__tests__/domain-workflows-basic-filters.test.tsx index 7947257c..89251674 100644 --- a/src/views/domain-workflows-basic/domain-workflows-basic-filters/__tests__/domain-workflows-basic-filters.test.tsx +++ b/src/views/domain-workflows-basic/domain-workflows-basic-filters/__tests__/domain-workflows-basic-filters.test.tsx @@ -1,7 +1,7 @@ import { render, screen, userEvent } from '@/test-utils/rtl'; import { type Props as PageFiltersToggleProps } from '@/components/page-filters/page-filters-toggle/page-filters-toggle.types'; -import { mockDomainWorkflowsQueryParamsValues } from '@/views/domain-workflows/__fixtures__/domain-workflows-query-params'; +import { mockDomainPageQueryParamsValues } from '@/views/domain-page/__fixtures__/domain-page-query-params'; import DomainWorkflowsBasicFilters from '../domain-workflows-basic-filters'; @@ -33,7 +33,7 @@ jest.mock('@/components/page-filters/hooks/use-page-filters', () => jest.fn(() => ({ resetAllFilters: mockResetAllFilters, activeFiltersCount: mockActiveFiltersCount, - queryParams: mockDomainWorkflowsQueryParamsValues, + queryParams: mockDomainPageQueryParamsValues, setQueryParams: mockSetQueryParams, })) ); diff --git a/src/views/domain-workflows-basic/domain-workflows-basic-table/__tests__/domain-workflows-basic-table.test.tsx b/src/views/domain-workflows-basic/domain-workflows-basic-table/__tests__/domain-workflows-basic-table.test.tsx index c198e919..d3879911 100644 --- a/src/views/domain-workflows-basic/domain-workflows-basic-table/__tests__/domain-workflows-basic-table.test.tsx +++ b/src/views/domain-workflows-basic/domain-workflows-basic-table/__tests__/domain-workflows-basic-table.test.tsx @@ -6,7 +6,7 @@ import { type Props as LoaderProps } from '@/components/table/table-infinite-scr import * as usePageQueryParamsModule from '@/hooks/use-page-query-params/use-page-query-params'; import { type ListWorkflowsResponse } from '@/route-handlers/list-workflows/list-workflows.types'; import type { Props as MSWMocksHandlersProps } from '@/test-utils/msw-mock-handlers/msw-mock-handlers.types'; -import { mockDomainWorkflowsQueryParamsValues } from '@/views/domain-workflows/__fixtures__/domain-workflows-query-params'; +import { mockDomainPageQueryParamsValues } from '@/views/domain-page/__fixtures__/domain-page-query-params'; import DomainWorkflowsBasicTable from '../domain-workflows-basic-table'; @@ -41,7 +41,7 @@ jest.mock('query-string', () => ({ const mockSetQueryParams = jest.fn(); jest.mock('@/hooks/use-page-query-params/use-page-query-params', () => - jest.fn(() => [mockDomainWorkflowsQueryParamsValues, mockSetQueryParams]) + jest.fn(() => [mockDomainPageQueryParamsValues, mockSetQueryParams]) ); describe(DomainWorkflowsBasicTable.name, () => { @@ -133,7 +133,7 @@ describe(DomainWorkflowsBasicTable.name, () => { it('calls only listOpen if Running status is selected', async () => { jest.spyOn(usePageQueryParamsModule, 'default').mockReturnValue([ { - ...mockDomainWorkflowsQueryParamsValues, + ...mockDomainPageQueryParamsValues, statusBasic: 'WORKFLOW_EXECUTION_CLOSE_STATUS_INVALID', }, mockSetQueryParams, @@ -157,7 +157,7 @@ describe(DomainWorkflowsBasicTable.name, () => { it('calls only listClosed if a close status is selected', async () => { jest.spyOn(usePageQueryParamsModule, 'default').mockReturnValue([ { - ...mockDomainWorkflowsQueryParamsValues, + ...mockDomainPageQueryParamsValues, statusBasic: 'WORKFLOW_EXECUTION_CLOSE_STATUS_COMPLETED', }, mockSetQueryParams,