From ae8c0a989cec353a45e73e4558541768308ca458 Mon Sep 17 00:00:00 2001 From: alexandrusoare Date: Thu, 28 Nov 2024 16:02:12 +0200 Subject: [PATCH] fix(unitests): fixed failing unittest --- superset-frontend/cypress-base/cypress/support/directories.ts | 2 +- .../test/OptionDescription.test.jsx | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/superset-frontend/cypress-base/cypress/support/directories.ts b/superset-frontend/cypress-base/cypress/support/directories.ts index 52285b6ddf55d..d41d00727b807 100644 --- a/superset-frontend/cypress-base/cypress/support/directories.ts +++ b/superset-frontend/cypress-base/cypress/support/directories.ts @@ -140,7 +140,7 @@ export const sqlLabView = { tabsNavList: "[class='ant-tabs-nav-list']", tab: "[class='ant-tabs-tab-btn']", addTabButton: dataTestLocator('add-tab-icon'), - tooltip: '.antd5-tooltip-content', + tooltip: '.ant-tooltip-content', tabName: '.css-1suejie', schemaInput: '[data-test=DatabaseSelector] > :nth-child(2)', loadingIndicator: '.Select__loading-indicator', diff --git a/superset-frontend/plugins/legacy-plugin-chart-partition/test/OptionDescription.test.jsx b/superset-frontend/plugins/legacy-plugin-chart-partition/test/OptionDescription.test.jsx index 54aece3919b1c..84c5d39f04e91 100644 --- a/superset-frontend/plugins/legacy-plugin-chart-partition/test/OptionDescription.test.jsx +++ b/superset-frontend/plugins/legacy-plugin-chart-partition/test/OptionDescription.test.jsx @@ -53,7 +53,6 @@ describe('OptionDescription', () => { // Perform delayed mouse hovering so tooltip could pop out fireEvent.mouseOver(tooltipTrigger); act(() => jest.runAllTimers()); - fireEvent.mouseOut(tooltipTrigger); const tooltip = screen.getByRole('tooltip'); expect(tooltip).toBeInTheDocument();