Repository navigation
[test-helpers] Add EuiEmptyPromptObject - #10290
Merged
steliosmavro merged 7 commits intoNov 20, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The clickAction(name) lookup includes title and body links, so it can click an excluded body link or fail with a strict-mode violation when a body link and an action share a name.
1 open issue
What changed in this PR
Adds EuiEmptyPromptObject to @elastic/eui-test-helpers, giving consumers a reusable Playwright interface for empty prompts.
Changes:
- Adds selectors and helpers for reading titles, bodies, and action labels, locating and clicking actions, and accessing the footer.
- Exports and documents the object, with Storybook-backed tests and a changelog entry.
- Registers the related Kibana selector migration for the next release.
| File | Description |
|---|---|
packages/test-helpers/src/selectors.ts |
Registers empty-prompt selectors. |
packages/test-helpers/src/playwright/components/empty_prompt/object.ts |
Implements the Playwright component object. |
packages/test-helpers/src/playwright/components/empty_prompt/object.spec.ts |
Adds Storybook-backed helper tests. |
packages/test-helpers/src/index.ts |
Exports EuiEmptyPromptObject. |
packages/test-helpers/src/components/empty_prompt/selectors.ts |
Defines empty-prompt element selectors. |
packages/test-helpers/src/components/empty_prompt/README.md |
Documents usage, API, and exclusions. |
packages/test-helpers/README.md |
Adds the object to the component directory. |
packages/test-helpers/changelogs/upcoming/10290.md |
Records the new helper API. |
packages/release-cli/kibana-prep-commits |
Registers the Kibana preparation commit under @next. |
Review effort: Balanced
Contributor
|
@steliosmavro there's a couple of merge conflicts, could you fix them before review? 🙏🏻 |
Kibana Regression Integration TestStatus: 💔 Kibana CI failed Please check Kibana CI logs for details. |
steliosmavro
force-pushed
the
stelios/eui-empty-prompt-object
branch
2 times, most recently
from
November 12, 2026 15:56
2b1b7a2 to
6225d05
Compare
steliosmavro
force-pushed
the
stelios/eui-empty-prompt-object
branch
2 times, most recently
from
November 18, 2026 10:59
742a975 to
58dccdc
Compare
weronikaolejniczak
removed their request for review
November 18, 2026 11:25
mgadewoll
reviewed
Nov 18, 2026
mgadewoll
approved these changes
Nov 18, 2026
mgadewoll
left a comment
Contributor
There was a problem hiding this comment.
🟢 LGTM, thanks for the updates!
steliosmavro
enabled auto-merge (squash)
November 18, 2026 15:58
steliosmavro
force-pushed
the
stelios/eui-empty-prompt-object
branch
from
November 20, 2026 13:32
9ed1d14 to
66ff244
Compare
💚 Build Succeeded
History
|
💚 Build Succeeded
History
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Adds
EuiEmptyPromptObjectto@elastic/eui-test-helpers.getTitle()andgetBody(), empty strings when the prop is not setgetActions(), the action labels in order, for a single action and for an arrayaction(name)locator andclickAction(name), matching a button or a link by accessible namefooterlocatorKibana prep: elastic/kibana#304586 moves the one raw
.euiEmptyPrompt__contentScout usage in the APM service map page object togetByRole('heading'), registered under@next.Closes elastic/apps-dx#315.
QA
yarn lintinpackages/test-helpersyarn test-e2eon the spec against Storybook, 4 passed