Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate enzyme tests to @testing-library/react #750

Closed
40 tasks
petermakowski opened this issue Apr 4, 2022 · 0 comments · Fixed by #853
Closed
40 tasks

Migrate enzyme tests to @testing-library/react #750

petermakowski opened this issue Apr 4, 2022 · 0 comments · Fixed by #853

Comments

@petermakowski
Copy link
Contributor

petermakowski commented Apr 4, 2022

We still have a few enzyme tests remaining that should be migrated to @testing-library/react.

This is blocking React v18 upgrade as enzyme doesn't support React v18

Tasks from below can be converted to Issues as marked as completed once done.

List of enzyme tests to migrate

  • Tabs/Tabs.test.tsx
  • AccordionSection/AccordionSection.test.tsx
  • Pagination/Pagination.test.tsx
  • ActionButton/ActionButton.test.tsx
  • Form/Form.test.tsx
  • Tooltip/Tooltip.test.tsx
  • Strip/Strip.test.tsx
  • Card/Card.test.tsx
  • ArticlePagination/ArticlePagination.test.tsx
  • TableCell/TableCell.test.tsx
  • TableRow/TableRow.test.tsx
  • MainTable/MainTable.test.tsx
  • Input/Input.test.tsx
  • Notification/Notification.test.tsx
  • Accordion/Accordion.test.tsx
  • Chip/Chip.test.tsx
  • ContextualMenu/ContextualMenu.test.tsx
  • ContextualMenu/ContextualMenuDropdown/ContextualMenuDropdown.test.tsx
  • Label/Label.test.tsx
  • Slider/Slider.test.tsx
  • Spinner/Spinner.test.tsx
  • PasswordToggle/PasswordToggle.test.tsx
  • Field/Field.test.tsx
  • Row/Row.test.tsx
  • Textarea/Textarea.test.tsx
  • Button/Button.test.tsx
  • Link/Link.test.tsx
  • SearchAndFilter/FilterPanelSection/FilterPanelSection.test.tsx
  • SearchAndFilter/SearchAndFilter.test.tsx
  • Table/Table.test.tsx
  • List/List.test.tsx
  • Select/Select.test.tsx
  • Icon/Icon.test.tsx
  • Modal/Modal.test.tsx
  • CodeSnippet/CodeSnippet.test.tsx
  • CheckableInput/CheckableInput.test.tsx
  • TableHeader/TableHeader.test.tsx
  • SearchBox/SearchBox.test.tsx
  • Col/Col.test.tsx

Once all the above is complete, we can remove enzyme from react-components

  • setup/util files: ./src/testing/utils.tsx ./src/setupTests.js, package.json, yarn.lock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants