Describe the bug
EuiDatePicker is not rendering data-test-subj as expected.
Impact and severity
Low
Minimum reproducible sandbox
Inspect the DOM and try and find the data-test-subj attribute:
https://codesandbox.io/p/sandbox/gifted-dhawan-fm23nf
Expected behavior
The data-test-subj is set on the right element.
Additional context (Optional)
We've agreed internally to add a hard-coded data-test-subj to all internal elements of e.g. EuiDatePickerRange and ensure a top-level data-test-subj is possible to set. Then consumers will be able to target any element with descendant selectors e.g. [data-test-subj="myUniqueId"] [data-test-subj="EuiDatePickerRange_startInput"]
Describe the bug
EuiDatePickeris not renderingdata-test-subjas expected.Impact and severity
Low
Minimum reproducible sandbox
Inspect the DOM and try and find the
data-test-subjattribute:https://codesandbox.io/p/sandbox/gifted-dhawan-fm23nf
Expected behavior
The
data-test-subjis set on the right element.Additional context (Optional)
We've agreed internally to add a hard-coded
data-test-subjto all internal elements of e.g.EuiDatePickerRangeand ensure a top-leveldata-test-subjis possible to set. Then consumers will be able to target any element with descendant selectors e.g.[data-test-subj="myUniqueId"] [data-test-subj="EuiDatePickerRange_startInput"]