From b0de5598ff4e5f4c828497688682ee7fddda6abe Mon Sep 17 00:00:00 2001 From: Antonio Rivero Date: Mon, 5 Dec 2022 15:21:29 -0300 Subject: [PATCH] SQL Lab: - Fix test so it considers new store updates from our changes --- .../components/SqlEditorLeftBar/SqlEditorLeftBar.test.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/superset-frontend/src/SqlLab/components/SqlEditorLeftBar/SqlEditorLeftBar.test.jsx b/superset-frontend/src/SqlLab/components/SqlEditorLeftBar/SqlEditorLeftBar.test.jsx index c2cf1b5a785f..fa8363f9e2aa 100644 --- a/superset-frontend/src/SqlLab/components/SqlEditorLeftBar/SqlEditorLeftBar.test.jsx +++ b/superset-frontend/src/SqlLab/components/SqlEditorLeftBar/SqlEditorLeftBar.test.jsx @@ -110,8 +110,8 @@ test('should toggle the table when the header is clicked', async () => { userEvent.click(header); await waitFor(() => { - expect(store.getActions()).toHaveLength(2); - expect(store.getActions()[1].type).toEqual('COLLAPSE_TABLE'); + expect(store.getActions()).toHaveLength(4); + expect(store.getActions()[3].type).toEqual('COLLAPSE_TABLE'); }); });