Skip to content

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

Closed

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

Activity

  1. added
    ⚠️ needs validation
    on Sep 15, 2025
  2. added theissue type on Sep 15, 2025
  3. removed
    ⚠️ needs validation
    on Sep 15, 2025
  4. self-assigned this
    on Sep 15, 2025
  5. added
    support-duty-flywheel
    on Sep 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

support-duty-flywheel

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions