fix(tests): fix test failures in ChartRenderer, ExploreChartHeader, and Chart

- ChartRenderer.test.tsx: Remove viz_type from formData to allow vizType
  prop to take precedence for suppressContextMenu test, use as unknown
  for test data type assertions
- ExploreChartHeader.test.tsx: Fix placeholder text assertion - use
  findByDisplayValue instead of findByText since chart has a title
- ExploreViewContainer: Pass exploreState prop to ExploreChartPanel
  to match original behavior of spread props
- ExploreChartPanel: Add exploreState to props interface

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Evan Rusackas
2026-01-18 10:11:09 -08:00
parent 8ff65607e6
commit 7d0d97bae7
4 changed files with 9 additions and 7 deletions

View File

@@ -839,6 +839,7 @@ function ExploreViewContainer(props: ExploreViewContainerProps) {
errorMessage={dataTabErrorMessage}
chartIsStale={chartIsStale}
onQuery={onQuery}
exploreState={props.exploreState}
/>
);
}