PromucFlow_constructor/app/client/packages/design-system/widgets-old/src
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
..
assets/icons chore: copy old ads components and move them to packages (#23142) 2023-05-15 10:08:58 +03:00
Button chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
constants chore: Updating strings to sentence case and moving brand colors logic update to tenant reducer (#28219) 2023-10-19 23:42:01 +05:30
ControlIcons chore:add eslint rules (#27878) 2023-10-09 16:54:06 +03:00
Dropdown fix: add testing library eslint rules (#31028) 2024-02-12 18:59:10 +03:00
Icon chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
LabelWithTooltip chore:add eslint rules (#27878) 2023-10-09 16:54:06 +03:00
ListSegmentHeader chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
MenuDivider chore: Move stories to component level (#26489) 2023-08-23 09:13:26 +03:00
ScrollIndicator chore: Move stories to component level (#26489) 2023-08-23 09:13:26 +03:00
SearchComponent chore:add eslint rules (#27878) 2023-10-09 16:54:06 +03:00
Spinner chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
TableDropdown chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
Text chore: Move stories to component level (#26489) 2023-08-23 09:13:26 +03:00
themes/default fix: design-system-old fixes (#24421) 2023-06-20 14:34:13 +05:30
Toast chore: Move stories to component level (#26489) 2023-08-23 09:13:26 +03:00
Tooltip chore: Move stories to component level (#26489) 2023-08-23 09:13:26 +03:00
types chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
utils chore:add eslint rules (#27878) 2023-10-09 16:54:06 +03:00
custom.d.ts chore: copy old ads components and move them to packages (#23142) 2023-05-15 10:08:58 +03:00
index.ts chore: copy old ads components and move them to packages (#23142) 2023-05-15 10:08:58 +03:00