Skip to content

[EuiDatePicker] Not supporting data-test-subj #9020

@acstll

Description

@acstll

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"]

Metadata

Metadata

Labels

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions