Skip to content

[Epic] Convert enzyme tests to react testing library #5596

@chandlerprall

Description

@chandlerprall

A discussion was brought up through the effort to support React 17 (#5584) that we will likely need to find a new testing framework to replace Enzyme, as those tests are supportable right now only through a forked enzyme adapter which will not work at all starting in React 18.

In response, we've decided to begin moving existing enzyme tests to react testing library, and once enabled we will author new tests in RTL right away.

First steps

Conversion

NB: converting an enzyme test to cypress instead of RTL, when it makes sense, is acceptable

put list of test files with enzyme tests here

Remaining enzyme usages

  • /react-date-picker
  • EuiDataGrid
  • EuiDataGridBody
  • EuiDataGridCellWrapper
  • EuiDataGridCell
  • EuiDataGridToolbarControl
  • EuiDelayHide
  • EuiExpression
  • EuiFacetButton
  • EuiFlyout
  • EuiCheckboxGroup
  • EuiRadioGroup
  • EuiHeaderBreadcrumbs
  • EuiI18n
  • EuiInnerText
  • EuiKeyPadMenuItem
  • EuiLink
  • EuiConfirmModal
  • EuiMutationObserver
  • EuiResizeObserver
  • EuiOutsideClickDetector
  • EuiPageSidebar
  • EuiPortal
  • EuiCacheProvider
  • EuiResizableContainer
  • EuiStepsHorizontal
  • EuiTab
  • EuiGlobalTabList
  • EuiToast
  • EuiToolTip
  • findTestSubject()
  • takeMountedSnapshot()

Metadata

Metadata

Assignees

Labels

Type

No fields configured for Epic.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions