Repository navigation
[test-helpers] Fix EuiComboBoxObject clear() on singleSelection combo boxes - #9998
Merged
steliosmavro merged 3 commits intoSep 4, 2026
Merged
steliosmavro merged 3 commits into
steliosmavro merged 3 commits into
Conversation
… boxes EUI never renders a close button on a pill when singleSelection is set, regardless of isClearable. clear() clicked that nonexistent button and timed out. It now clears singleSelection pills with Backspace instead. Also fixes the singleSelection=true spec, which was silently exercising multi-select due to a Storybook URL arg encoding mistake, and adds a regression test.
steliosmavro
marked this pull request as ready for review
September 3, 2026 15:25
weronikaolejniczak
self-requested a review
September 4, 2026 07:20
weronikaolejniczak
approved these changes
Sep 4, 2026
weronikaolejniczak
left a comment
Contributor
There was a problem hiding this comment.
LGTM! 🟢
nit: We could fix the JSDoc in storybook.ts while we're here:
Optional semicolon-separated Storybook args string (e.g.
'data-test-subj:myCombo;singleSelection:true')
to !true
💚 Build Succeeded
History
|
💚 Build Succeeded
History
|
steliosmavro
added a commit
to elastic/kibana
that referenced
this pull request
Sep 7, 2026
…orkaround (#289509) ## Summary Bumps `@elastic/eui-test-helpers` to a snapshot containing the `EuiComboBoxObject` fix for `singleSelection` combo boxes ([elastic/eui#9998](elastic/eui#9998)), which was hanging/timing out ([discussion](#287378 (comment))). Drops the local `replaceSingleComboSelection` workaround in `search_examples_page.ts` and goes back to the shared `setSelectedOptions()`. Draft: waiting on the official `@elastic/eui-test-helpers` release to bump the real dependency version instead of the snapshot. ## Testing - Ran the full `examples/search_examples` Scout UI suite locally (13/13 passed), including every spec that exercises `searchBucketField`/`searchMetricField`. - `node scripts/type_check --project examples/search_examples/tsconfig.json`: clean. - `node scripts/eslint` on the changed file: clean.
alexreal1314
pushed a commit
to alexreal1314/kibana
that referenced
this pull request
Sep 8, 2026
…orkaround (elastic#289509) ## Summary Bumps `@elastic/eui-test-helpers` to a snapshot containing the `EuiComboBoxObject` fix for `singleSelection` combo boxes ([elastic/eui#9998](elastic/eui#9998)), which was hanging/timing out ([discussion](elastic#287378 (comment))). Drops the local `replaceSingleComboSelection` workaround in `search_examples_page.ts` and goes back to the shared `setSelectedOptions()`. Draft: waiting on the official `@elastic/eui-test-helpers` release to bump the real dependency version instead of the snapshot. ## Testing - Ran the full `examples/search_examples` Scout UI suite locally (13/13 passed), including every spec that exercises `searchBucketField`/`searchMetricField`. - `node scripts/type_check --project examples/search_examples/tsconfig.json`: clean. - `node scripts/eslint` on the changed file: clean.
Dosant
added a commit
to elastic/kibana
that referenced
this pull request
Sep 11, 2026
Part of elastic/eui-private#766 Staged commits cherry-picked from: - #287310 - #288418 - #235177 ## Dependency updates `@elastic/eui` - 120.0.0 ⏩ 121.0.0 `@elastic/eui-test-helpers` - 1.5.0-snapshot ⏩ 1.6.0 > [!WARNING] > `EuiHeaderLogo`: `iconType` is removed and `children` text is no longer rendered. Use `logoType` (`glyph` or `horizontal`). Staged in #288418. Also in this PR: - `EuiButtonGroup` Children API migrations and snapshot updates from #287310 - New i18n token `euiTimeWindowButtons.label` (`Time window controls`) ## Package updates ### `@elastic/eui` [v121.0.0](https://github.com/elastic/eui/blob/main/packages/eui/changelogs/CHANGELOG_2026.md) - Added `isDisabled`, `isLoading`, `href`, and `target` props to `EuiFlyoutMenuAction`. ([#9992](elastic/eui#9992)) - Updated `onClick` on `EuiFlyoutMenuAction` to be optional, so actions can navigate via `href` alone. ([#9992](elastic/eui#9992)) - Added `tableSparkles` icon ([#9987](elastic/eui#9987)) - Updated styles of `EuiFilterButton` ([#9961](elastic/eui#9961)) - Updated `EuiFilterGroup` ([#9961](elastic/eui#9961)) - Updated styles - Added `display` prop (values: `'regular' | 'highlighted'`) to render different visual toggle variants - Added `showDividers` prop to optionally render dividers between group children - Updated `EuiSplitButton` disabled styles ([#9986](elastic/eui#9986)) - Updated styles on `EuiButtonGroup` with legacy Options API ([#9953](elastic/eui#9953)) - Updated usages of `EuiButtonGroup` in `EuiDataGrid`'s display selector and column sorting to use the Children API ([#9953](elastic/eui#9953)) - Updated `EuiSuperDatePicker`'s time window buttons to use `EuiButtonGroup` with Children API ([#9953](elastic/eui#9953)) **Bug fixes** - Fixed `EuiPopoverTitle` and `EuiPopoverFooter` backgrounds not following the popover panel's corner radius ([#9985](elastic/eui#9985)) - Fixed `EuiFlyoutBody` content becoming inaccessible at short viewport heights ([#9944](elastic/eui#9944)) **Deprecations** - Deprecated `options` on `EuiButtonGroup` - Use the new Children API via `children` prop instead. ([#9953](elastic/eui#9953)) - Deprecated `color` on `EuiButtonGroup` - `color` will be fixed to `text` in the future. ([#9953](elastic/eui#9953)) - Deprecated `buttonSize="compressed"` on `EuiButtonGroup` - Renders as `buttonSize="s"` instead. ([#9953](elastic/eui#9953)) **Breaking changes** - Added a new `logoType` prop to `EuiHeaderLogo` to render either the `glyph` or `horizontal` Elastic logo. The `iconType` prop has been removed, and `children` text content is no longer rendered. ([#9875](elastic/eui#9875)) ### `@elastic/eui-test-helpers` [v1.6.0](https://github.com/elastic/eui/blob/main/packages/test-helpers/changelogs/CHANGELOG_2026.md) - Added `EuiPopoverObject`, a Playwright Component Object for `EuiPopover` ([#9993](elastic/eui#9993)) - Added `EuiFlyoutObject`, a Playwright Component Object for `EuiFlyout` ([#9994](elastic/eui#9994)) - Added `EuiModalObject`, a Playwright Component Object for `EuiModal`/`EuiConfirmModal` ([#10002](elastic/eui#10002)) - Added `EuiAccordionObject`, a Playwright Component Object for `EuiAccordion` ([#10003](elastic/eui#10003)) **Bug fixes** - Fixed `EuiComboBoxObject.clear()` and `setSelectedOptions()` timing out on `singleSelection` combo boxes, whose pills have no close button ([#9998](elastic/eui#9998)) --------- Co-authored-by: Lene Gadewoll <[email protected]> Co-authored-by: JoseLuisGJ <[email protected]>
ppisljar
pushed a commit
to ppisljar/kibana
that referenced
this pull request
Sep 21, 2026
Part of elastic/eui-private#766 Staged commits cherry-picked from: - elastic#287310 - elastic#288418 - elastic#235177 ## Dependency updates `@elastic/eui` - 120.0.0 ⏩ 121.0.0 `@elastic/eui-test-helpers` - 1.5.0-snapshot ⏩ 1.6.0 > [!WARNING] > `EuiHeaderLogo`: `iconType` is removed and `children` text is no longer rendered. Use `logoType` (`glyph` or `horizontal`). Staged in elastic#288418. Also in this PR: - `EuiButtonGroup` Children API migrations and snapshot updates from elastic#287310 - New i18n token `euiTimeWindowButtons.label` (`Time window controls`) ## Package updates ### `@elastic/eui` [v121.0.0](https://github.com/elastic/eui/blob/main/packages/eui/changelogs/CHANGELOG_2026.md) - Added `isDisabled`, `isLoading`, `href`, and `target` props to `EuiFlyoutMenuAction`. ([elastic#9992](elastic/eui#9992)) - Updated `onClick` on `EuiFlyoutMenuAction` to be optional, so actions can navigate via `href` alone. ([elastic#9992](elastic/eui#9992)) - Added `tableSparkles` icon ([elastic#9987](elastic/eui#9987)) - Updated styles of `EuiFilterButton` ([elastic#9961](elastic/eui#9961)) - Updated `EuiFilterGroup` ([elastic#9961](elastic/eui#9961)) - Updated styles - Added `display` prop (values: `'regular' | 'highlighted'`) to render different visual toggle variants - Added `showDividers` prop to optionally render dividers between group children - Updated `EuiSplitButton` disabled styles ([elastic#9986](elastic/eui#9986)) - Updated styles on `EuiButtonGroup` with legacy Options API ([elastic#9953](elastic/eui#9953)) - Updated usages of `EuiButtonGroup` in `EuiDataGrid`'s display selector and column sorting to use the Children API ([elastic#9953](elastic/eui#9953)) - Updated `EuiSuperDatePicker`'s time window buttons to use `EuiButtonGroup` with Children API ([elastic#9953](elastic/eui#9953)) **Bug fixes** - Fixed `EuiPopoverTitle` and `EuiPopoverFooter` backgrounds not following the popover panel's corner radius ([elastic#9985](elastic/eui#9985)) - Fixed `EuiFlyoutBody` content becoming inaccessible at short viewport heights ([elastic#9944](elastic/eui#9944)) **Deprecations** - Deprecated `options` on `EuiButtonGroup` - Use the new Children API via `children` prop instead. ([elastic#9953](elastic/eui#9953)) - Deprecated `color` on `EuiButtonGroup` - `color` will be fixed to `text` in the future. ([elastic#9953](elastic/eui#9953)) - Deprecated `buttonSize="compressed"` on `EuiButtonGroup` - Renders as `buttonSize="s"` instead. ([elastic#9953](elastic/eui#9953)) **Breaking changes** - Added a new `logoType` prop to `EuiHeaderLogo` to render either the `glyph` or `horizontal` Elastic logo. The `iconType` prop has been removed, and `children` text content is no longer rendered. ([elastic#9875](elastic/eui#9875)) ### `@elastic/eui-test-helpers` [v1.6.0](https://github.com/elastic/eui/blob/main/packages/test-helpers/changelogs/CHANGELOG_2026.md) - Added `EuiPopoverObject`, a Playwright Component Object for `EuiPopover` ([elastic#9993](elastic/eui#9993)) - Added `EuiFlyoutObject`, a Playwright Component Object for `EuiFlyout` ([elastic#9994](elastic/eui#9994)) - Added `EuiModalObject`, a Playwright Component Object for `EuiModal`/`EuiConfirmModal` ([elastic#10002](elastic/eui#10002)) - Added `EuiAccordionObject`, a Playwright Component Object for `EuiAccordion` ([elastic#10003](elastic/eui#10003)) **Bug fixes** - Fixed `EuiComboBoxObject.clear()` and `setSelectedOptions()` timing out on `singleSelection` combo boxes, whose pills have no close button ([elastic#9998](elastic/eui#9998)) --------- Co-authored-by: Lene Gadewoll <[email protected]> Co-authored-by: JoseLuisGJ <[email protected]>
weronikaolejniczak
pushed a commit
to boriskirov/eui
that referenced
this pull request
Nov 11, 2026
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
EuiComboBoxObject.clear()(andsetSelectedOptions(), which calls it) hangs and times out on asingleSelectioncombo box.EUI never renders a close button on a pill when
singleSelectionis set, regardless ofisClearable.clear()assumed every pill has one and clicked it, so it waited on a locator that never resolves.Fix
clear()now checks whether the pill actually has a close button. If not (singleSelection), it clears via Backspace on the empty search input instead of clicking a button that doesn't exist.Also fixed the
singleSelection=truespec: it was passingsingleSelection:truein the Storybook URL args, which Storybook silently drops (booleans need the!true/!falseencoding), so the block was actually exercising multi-select. Fixed the encoding and added a test asserting the pill has no close button.Testing
clear()fix and reran the (now-correctly-encoded)singleSelection=truespec: all 4 tests fail with a 10s timeout on the missing button, confirming the bug.combo_boxspecs (35) pass.@elastic/eui-test-helpersPlaywright suite (84 tests) passes.yarn lint(tsc --noEmit) is clean.