From 9e6d35568774df991c32c9e786f6c6e8709260dd Mon Sep 17 00:00:00 2001 From: Kamil Gabryjelski Date: Tue, 1 Mar 2022 12:14:15 +0100 Subject: [PATCH] Fix test --- .../FilterCard/FilterCard.test.tsx | 138 +++++++++--------- 1 file changed, 71 insertions(+), 67 deletions(-) diff --git a/superset-frontend/src/dashboard/components/nativeFilters/FilterCard/FilterCard.test.tsx b/superset-frontend/src/dashboard/components/nativeFilters/FilterCard/FilterCard.test.tsx index 6a0c62feb1d72..5a0663032d3cf 100644 --- a/superset-frontend/src/dashboard/components/nativeFilters/FilterCard/FilterCard.test.tsx +++ b/superset-frontend/src/dashboard/components/nativeFilters/FilterCard/FilterCard.test.tsx @@ -87,80 +87,84 @@ const baseInitialState = { }, }, dashboardLayout: { - ROOT_ID: { - children: ['TABS-1'], - id: 'ROOT_ID', - type: 'ROOT', - }, + past: [], + future: [], + present: { + ROOT_ID: { + children: ['TABS-1'], + id: 'ROOT_ID', + type: 'ROOT', + }, - 'TABS-1': { - children: ['TAB-1', 'TAB-2'], - id: 'TABS-1', - meta: {}, - parents: ['ROOT_ID'], - type: 'TABS', - }, - 'TAB-1': { - children: [], - id: 'TAB-1', - meta: { - defaultText: 'Tab title', - placeholder: 'Tab title', - text: 'Tab 1', + 'TABS-1': { + children: ['TAB-1', 'TAB-2'], + id: 'TABS-1', + meta: {}, + parents: ['ROOT_ID'], + type: 'TABS', }, - parents: ['ROOT_ID', 'TABS-1'], - type: 'TAB', - }, - 'TAB-2': { - children: [], - id: 'TAB-2', - meta: { - defaultText: 'Tab title', - placeholder: 'Tab title', - text: 'Tab 2', + 'TAB-1': { + children: [], + id: 'TAB-1', + meta: { + defaultText: 'Tab title', + placeholder: 'Tab title', + text: 'Tab 1', + }, + parents: ['ROOT_ID', 'TABS-1'], + type: 'TAB', }, - parents: ['ROOT_ID', 'TABS-1'], - type: 'TAB', - }, - 'CHART-1': { - children: [], - id: 'CHART-1', - meta: { - chartId: 1, - sliceName: 'Test chart', + 'TAB-2': { + children: [], + id: 'TAB-2', + meta: { + defaultText: 'Tab title', + placeholder: 'Tab title', + text: 'Tab 2', + }, + parents: ['ROOT_ID', 'TABS-1'], + type: 'TAB', }, - parents: ['ROOT_ID', 'TABS-1', 'TAB-1'], - type: 'CHART', - }, - 'CHART-2': { - children: [], - id: 'CHART-2', - meta: { - chartId: 2, - sliceName: 'Test chart 2', + 'CHART-1': { + children: [], + id: 'CHART-1', + meta: { + chartId: 1, + sliceName: 'Test chart', + }, + parents: ['ROOT_ID', 'TABS-1', 'TAB-1'], + type: 'CHART', }, - parents: ['ROOT_ID', 'TABS-1', 'TAB-1'], - type: 'CHART', - }, - 'CHART-3': { - children: [], - id: 'CHART-3', - meta: { - chartId: 3, - sliceName: 'Test chart 3', + 'CHART-2': { + children: [], + id: 'CHART-2', + meta: { + chartId: 2, + sliceName: 'Test chart 2', + }, + parents: ['ROOT_ID', 'TABS-1', 'TAB-1'], + type: 'CHART', }, - parents: ['ROOT_ID', 'TABS-1', 'TAB-1'], - type: 'CHART', - }, - 'CHART-4': { - children: [], - id: 'CHART-4', - meta: { - chartId: 4, - sliceName: 'Test chart 4', + 'CHART-3': { + children: [], + id: 'CHART-3', + meta: { + chartId: 3, + sliceName: 'Test chart 3', + }, + parents: ['ROOT_ID', 'TABS-1', 'TAB-1'], + type: 'CHART', + }, + 'CHART-4': { + children: [], + id: 'CHART-4', + meta: { + chartId: 4, + sliceName: 'Test chart 4', + }, + parents: ['ROOT_ID', 'TABS-1', 'TAB-2'], + type: 'CHART', }, - parents: ['ROOT_ID', 'TABS-1', 'TAB-2'], - type: 'CHART', }, }, };