Skip to content

[EuiContextMenu] Panels should allow for setting data-test-subj from props #9321

@kowalczyk-krzysztof

Description

@kowalczyk-krzysztof

Requestor

@kowalczyk-krzysztof

Problem Statement

Currently EuiContextMenu panels (EuiContextMenuPanelDescriptor) don't allow for setting data-test-subj from props.

Proposed Solution

There's no workaround other than storing the test ids in some state and changing the current test id based on active panel id.

Use Case

Kibana App Menu component: https://github.com/elastic/kibana-team/issues/2650

Value / Impact

Low impact

Urgency

Not urgent.

Do alternatives or workarounds exist?

Yes - storing the test ids in some state and changing the current test id based on active panel id.

Related code or customizations

Workaround I'm using: elastic/kibana#249182

Additional context (Optional)

Designs or Specs (Optional)

Metadata

Metadata

Labels

low hanging fruitAn issue, often a bug, that is lower effort and clearly ought to be fixed
No fields configured for Enhancement.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions