diff --git a/superset-frontend/src/components/CopyToClipboard/CopyToClipboard.test.tsx b/superset-frontend/src/components/CopyToClipboard/CopyToClipboard.test.tsx
index 81103a8a080ef..87dbca404b0fd 100644
--- a/superset-frontend/src/components/CopyToClipboard/CopyToClipboard.test.tsx
+++ b/superset-frontend/src/components/CopyToClipboard/CopyToClipboard.test.tsx
@@ -58,6 +58,16 @@ test('renders tooltip on hover', async () => {
expect(tooltip).toHaveTextContent(tooltipText);
});
+test('not renders tooltip on hover with hideTooltip props', async () => {
+ const tooltipText = 'Tooltip';
+ render(, {
+ useRedux: true,
+ });
+ userEvent.hover(screen.getByText('Copy'));
+ const tooltip = screen.queryByRole('tooltip');
+ expect(tooltip).toBe(null);
+});
+
test('triggers onCopyEnd', async () => {
const onCopyEnd = jest.fn();
render(, {