Skip to content

Commit

Permalink
Remove wrong test
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeYvas committed Feb 28, 2024
1 parent 7173c2e commit d9a20f0
Showing 1 changed file with 0 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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({});

Expand Down

0 comments on commit d9a20f0

Please sign in to comment.