mirror of
https://github.com/apache/superset.git
synced 2026-05-31 13:19:23 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user