diff --git a/superset-frontend/src/components/GridTable/Header.test.tsx b/superset-frontend/src/components/GridTable/Header.test.tsx index 3045616e35366..c1154e7476c3d 100644 --- a/superset-frontend/src/components/GridTable/Header.test.tsx +++ b/superset-frontend/src/components/GridTable/Header.test.tsx @@ -18,7 +18,8 @@ */ import type { Column, GridApi } from 'ag-grid-community'; import { act, fireEvent, render } from 'spec/helpers/testing-library'; -import Header, { PIVOT_COL_ID } from './Header'; +import Header from './Header'; +import { PIVOT_COL_ID } from './constants'; jest.mock('src/components/Dropdown', () => ({ Dropdown: () =>
, diff --git a/superset-frontend/src/components/GridTable/HeaderMenu.test.tsx b/superset-frontend/src/components/GridTable/HeaderMenu.test.tsx index 9afd20fb395e8..0233308d0640b 100644 --- a/superset-frontend/src/components/GridTable/HeaderMenu.test.tsx +++ b/superset-frontend/src/components/GridTable/HeaderMenu.test.tsx @@ -66,6 +66,7 @@ jest.mock('src/components/Icons', () => ({ VerticalLeftOutlined: () => , EyeInvisibleOutlined: () => , EyeOutlined: () => , + ColumnWidthOutlined: () => , })); jest.mock('src/components/Dropdown', () => ({ @@ -165,10 +166,7 @@ test('renders unhide when invisible column exists', async () => { describe('for main menu', () => { test('renders Copy to Clipboard', async () => { - const { getByText, queryByTestId } = render( -