fix: Revert "fix(sqllab): flaky json explore modal due to over-rendering (#26156)" (#26284)

This commit is contained in:
JUST.in DO IT
2023-12-15 15:05:00 -08:00
committed by GitHub
parent 9c96519b67
commit 8450cca998
13 changed files with 277 additions and 678 deletions

View File

@@ -19,10 +19,9 @@
import React from 'react';
import { render, screen } from 'spec/helpers/testing-library';
import QueryHistory from 'src/SqlLab/components/QueryHistory';
import { initialState } from 'src/SqlLab/fixtures';
const mockedProps = {
queryEditorId: 123,
queries: [],
displayLimit: 1000,
latestQueryId: 'yhMUZCGb',
};
@@ -33,7 +32,7 @@ const setup = (overrides = {}) => (
describe('QueryHistory', () => {
it('Renders an empty state for query history', () => {
render(setup(), { useRedux: true, initialState });
render(setup());
const emptyStateText = screen.getByText(
/run a query to display query history/i,