feat(sqllab): Replace FilterableTable by AgGrid Table (#29900)

This commit is contained in:
JUST.in DO IT
2025-01-30 16:43:22 -08:00
committed by GitHub
parent 3f46bcf142
commit f73d61a597
13 changed files with 1287 additions and 204 deletions

View File

@@ -354,7 +354,7 @@ describe('ResultSet', () => {
);
});
const { getByRole } = setup(mockedProps, mockStore(initialState));
expect(getByRole('table')).toBeInTheDocument();
expect(getByRole('treegrid')).toBeInTheDocument();
});
test('renders if there is a limit in query.results but not queryLimit', async () => {
@@ -372,7 +372,7 @@ describe('ResultSet', () => {
},
}),
);
expect(getByRole('table')).toBeInTheDocument();
expect(getByRole('treegrid')).toBeInTheDocument();
});
test('Async queries - renders "Fetch data preview" button when data preview has no results', () => {
@@ -400,7 +400,7 @@ describe('ResultSet', () => {
name: /fetch data preview/i,
}),
).toBeVisible();
expect(screen.queryByRole('table')).not.toBeInTheDocument();
expect(screen.queryByRole('treegrid')).not.toBeInTheDocument();
});
test('Async queries - renders "Refetch results" button when a query has no results', () => {
@@ -429,7 +429,7 @@ describe('ResultSet', () => {
name: /refetch results/i,
}),
).toBeVisible();
expect(screen.queryByRole('table')).not.toBeInTheDocument();
expect(screen.queryByRole('treegrid')).not.toBeInTheDocument();
});
test('Async queries - renders on the first call', () => {
@@ -449,7 +449,7 @@ describe('ResultSet', () => {
},
}),
);
expect(screen.getByRole('table')).toBeVisible();
expect(screen.getByRole('treegrid')).toBeVisible();
expect(
screen.queryByRole('button', {
name: /fetch data preview/i,