You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ma...@apache.org on 2023/08/03 23:03:42 UTC

[superset] 10/12: fix a test

This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin pushed a commit to branch bump_esilnt
in repository https://gitbox.apache.org/repos/asf/superset.git

commit b6d2fa904c1d79bba693747572906b25861550d3
Author: Maxime Beauchemin <ma...@gmail.com>
AuthorDate: Wed Aug 2 14:49:37 2023 -0700

    fix a test
---
 .../AdhocFilterEditPopoverSimpleTabContent.test.tsx                     | 2 +-
 superset-frontend/src/pages/SavedQueryList/SavedQueryList.test.jsx      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/superset-frontend/src/explore/components/controls/FilterControl/AdhocFilterEditPopoverSimpleTabContent/AdhocFilterEditPopoverSimpleTabContent.test.tsx b/superset-frontend/src/explore/components/controls/FilterControl/AdhocFilterEditPopoverSimpleTabContent/AdhocFilterEditPopoverSimpleTabContent.test.tsx
index 23a093b4d9..721a374154 100644
--- a/superset-frontend/src/explore/components/controls/FilterControl/AdhocFilterEditPopoverSimpleTabContent/AdhocFilterEditPopoverSimpleTabContent.test.tsx
+++ b/superset-frontend/src/explore/components/controls/FilterControl/AdhocFilterEditPopoverSimpleTabContent/AdhocFilterEditPopoverSimpleTabContent.test.tsx
@@ -553,6 +553,6 @@ describe('AdhocFilterEditPopoverSimpleTabContent Advanced data Type Test', () =>
       userEvent.type(operatorValueField, '{enter}');
     });
 
-    expect(screen.getByText('EQUALS')).toBeInTheDocument();
+    expect(screen.getByText('EQUALS')).not.toBeNull();
   });
 });
diff --git a/superset-frontend/src/pages/SavedQueryList/SavedQueryList.test.jsx b/superset-frontend/src/pages/SavedQueryList/SavedQueryList.test.jsx
index 5d9b35a4a3..078961466e 100644
--- a/superset-frontend/src/pages/SavedQueryList/SavedQueryList.test.jsx
+++ b/superset-frontend/src/pages/SavedQueryList/SavedQueryList.test.jsx
@@ -279,7 +279,7 @@ describe('RTL', () => {
 
     // Grab and click the "toggle all" checkbox to expose export button
     const selectAllCheckbox = screen.getByRole('checkbox', {
-      name: /toggle all rows selected/i,
+      name: /toggle all/i,
     });
     userEvent.click(selectAllCheckbox);