fix(save-chart): fix info icon alignment in save chart modal (#37708)

Co-authored-by: Diego Pucci <diegopucci.me@gmail.com>
This commit is contained in:
Enzo Martellucci
2026-02-26 18:11:07 +01:00
committed by GitHub
parent 5a134170a0
commit bbafae5f62
2 changed files with 38 additions and 7 deletions

View File

@@ -317,6 +317,19 @@ test('set dataset name when chart source is query', () => {
expect(getByTestId('new-dataset-name')).toHaveValue('test');
});
test('renders InfoTooltip icon next to Dataset Name label when datasource type is query', () => {
const { getByTestId, getByText } = setup({}, queryStore);
const datasetNameLabel = getByText('Dataset Name');
expect(datasetNameLabel).toBeInTheDocument();
const infoTooltip = getByTestId('info-tooltip-icon');
expect(infoTooltip).toBeInTheDocument();
const labelContainer = datasetNameLabel.parentElement;
expect(labelContainer).toContainElement(infoTooltip);
});
test('make sure slice_id in the URLSearchParams before the redirect', () => {
const myProps = {
...defaultProps,