PromucFlow_constructor/app/client/src/components/formControls
Valera Melnikov d7cd02a45d
fix: add testing library eslint rules (#31028)
Added recommended rules for testing library

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Added `data-testid` attributes across various components for improved
test identification.

- **Tests**
- Enhanced test cases with asynchronous handling (`async`/`await`) for
more reliable user interaction simulations.
- Transitioned to using `getByTestId` instead of `queryByTestId` for
better assertion reliability in tests.
- Added `await` before the `userEvent.click(el)` statement in the
ChartWidget test file.
- Updated the destructured variable names from `queryByTestId` to
`getByTestId` in the DividerWidget test file for improved clarity.
- Added an import for `screen` from "@testing-library/react" and updated
element querying in the TabsWidget test file.

- **Chores**
- Updated ESLint configurations to include testing-library plugins and
rules, improving code quality and consistency in test files.
- Removed unnecessary `cleanup` function calls after tests, following
best practices for test cleanup.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-02-12 18:59:10 +03:00
..
BaseControl.tsx feat: open ai feature request (#28295) 2023-11-03 11:20:34 +07:00
CheckboxControl.tsx feat: remove collapse sections (#24017) 2023-07-04 17:41:56 +05:30
DropDownControl.tsx feat: Add knowledge retrieval in Appsmith AI (#30725) 2024-02-05 17:15:45 +05:30
DynamicInputTextControl.test.tsx fix: add testing library eslint rules (#31028) 2024-02-12 18:59:10 +03:00
DynamicInputTextControl.tsx feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
DynamicTextFieldControl.tsx chore: Move action redesign into its on flag (#30886) 2024-02-06 12:26:33 +05:30
EntitySelectorControl.tsx feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
FieldArrayControl.tsx feat: Anthropic AI Plugin (#29095) 2023-12-05 16:03:27 +05:30
FilePickerControl.tsx feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
FixedKeyInputControl.tsx feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
FormTemplateControl.tsx feat: Appsmith AI as datasource plugin (#29794) 2024-01-16 20:19:08 +05:30
InputNumberControl.tsx feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
InputTextControl.tsx feat: http2 support for REST API and GraphQL (#29304) 2023-12-19 15:56:20 +05:30
KeyValueArrayControl.tsx feat: debugger api pane navigation (#25771) 2023-08-10 19:25:06 +05:30
MultiFilePickerControl.tsx fix: Remove stale values in Query form on view change (#30975) 2024-02-09 09:36:45 +05:30
PaginationControl.tsx feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
SegmentedControl.tsx chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
SortingControl.tsx feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
StyledControls.tsx chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
SwitchControl.tsx feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
utils.test.ts feat: updating datasource endpoints contract (#23920) 2023-07-03 18:36:05 +05:30
utils.ts feat: Add knowledge retrieval in Appsmith AI (#30725) 2024-02-05 17:15:45 +05:30
WhereClauseControl.tsx chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00