From d9a20f0e607833e0dfdeafcf3551af9cb88d70f3 Mon Sep 17 00:00:00 2001 From: Vasilev Sergey Date: Wed, 28 Feb 2024 17:42:16 +0400 Subject: [PATCH] Remove wrong test --- .../QueryBuilderModal.test.js | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/src/QueryBuilder/QueryBuilder/QueryBuilderModal/QueryBuilderModal.test.js b/src/QueryBuilder/QueryBuilder/QueryBuilderModal/QueryBuilderModal.test.js index 52628c6e..e03e9a9e 100644 --- a/src/QueryBuilder/QueryBuilder/QueryBuilderModal/QueryBuilderModal.test.js +++ b/src/QueryBuilder/QueryBuilder/QueryBuilderModal/QueryBuilderModal.test.js @@ -108,30 +108,6 @@ describe('QueryBuilderModal', () => { }); }); - it('should render field select by default passed as property', async () => { - const recordColumns = ['user_id', 'user_first_name']; - - renderQueryBuilderModal({recordColumns}); - - await waitFor(() => { - expect(screen.queryByText('LOADING')).not.toBeInTheDocument(); - }); - - let selectFieldPlaceholder; - - await waitFor(() => { - selectFieldPlaceholder = screen.getByText('ui-plugin-query-builder.control.selection.placeholder'); - }); - - act(() => userEvent.click(selectFieldPlaceholder)); - - await waitFor(() => { - getFieldOptions(recordColumns.columns).forEach(col => { - expect(screen.getByText(`${col.label}`)).toBeInTheDocument(); - }); - }); - }); - it('should render boolean select when row added', async () => { renderQueryBuilderModal({});