Repository navigation
[test-helpers] Add EuiFilterButtonObject - #9942
Merged
steliosmavro merged 3 commits intoAug 25, 2026
Merged
Conversation
Playwright Component Object for EuiFilterButton, following the package CONTRIBUTING guide. Scoped to what is genuinely EUI-owned: the active/selected state classes (hasActiveFilters, isSelected) via the inherited root locator, and the notification badge as a dedicated Locator. Deliberately excludes popover open/close mechanics (EuiPopover already exposes aria-expanded/aria-controls synchronously) and option selection inside the popover (compose with the existing EuiSelectableObject for that instead).
💚 Build Succeeded
History
|
💚 Build Succeeded
History
|
This was referenced Aug 25, 2026
AmirmAfzal
pushed a commit
to AmirmAfzal/eui
that referenced
this pull request
Aug 27, 2026
weronikaolejniczak
added a commit
to elastic/kibana
that referenced
this pull request
Sep 4, 2026
## Dependency updates `@elastic/eui` - 119.1.0 ⏩ 120.0.0 `@elastic/eui-test-helpers` - 1.4.0 ⏩ 1.5.0 `@elastic/eslint-plugin-eui` - 2.16.0 ⏩ 3.0.0 `@elastic/eui-illustrations` - 1.0.1 ⏩ 1.0.2 > [!WARNING] > Removed unused `EuiIcon` types ([#9884](elastic/eui#9884)): `branchUser`, `continuityAboveBelow`, `continuityBelow`, `function`, `magnet`, `pageSelect`, `securitySignalResolved`, `tear`. ## Package updates ### `@elastic/eui` [v120.0.0](https://github.com/elastic/eui/blob/main/packages/eui/changelogs/CHANGELOG_2026.md) - Updated `EuiButtonGroup` (Children API only): ([#9929](elastic/eui#9929)) - Added `variant="selection"` to render the group as selection group - Added `type` prop (values `'single' | 'multi'`) to switch between single or multi selection - Added `display` prop (values: `'regular' | 'highlighted' | 'inverse'`) to render different visual variants - Added `idSelected` prop for single-state selection - Added `idToSelectedMap` prop for multi-state selection - Added `onChange` prop which returns the selected child button `id` - Added `cloudBolt`, `cloudRain`, `cloudSun`, `kubernetesNamespace`, `productTimelion`, `productTSVB`, `push`, `transitionRightIn`, and `transitionRightOut` glyphs to `EuiIcon` ([#9923](elastic/eui#9923)) - Updated the `cube`, `memory`, and `wrench` glyphs in `EuiIcon` with redesigned artwork ([#9923](elastic/eui#9923)) - Updated search synonyms for the `bolt`, `memory`, `plugs`, and `wrench` glyphs in `EuiIcon` ([#9923](elastic/eui#9923)) - Updated `EuiResizableContainer` collapse buttons to use the `transition*` glyphs in place of the `menu*` glyphs ([#9923](elastic/eui#9923)) - Hid undocumented `swatchInput` from glyph docs by categorizing it as `internal` ([#9884](elastic/eui#9884)) **Bug fixes** - Fixed `EuiDatePicker` throwing an error in React 19 when opening the month or year dropdown ([#9960](elastic/eui#9960)) - Fixed the icon documentation listing glyphs and Elastic logos out of alphabetical order ([#9923](elastic/eui#9923)) **Deprecations** - Updated deprecated icon alias mappings: ([#9974](elastic/eui#9974)) - `folderClosed` and `folderClose` → `folder` - Deprecated the `cloudDrizzle`, `cloudStormy`, `cloudSunny`, `kqlFunction`, `namespace`, `visTimelion`, and `visVisualBuilder` `EuiIcon` types in favor of `cloudRain`, `cloudBolt`, `cloudSun`, `push`, `kubernetesNamespace`, `productTimelion`, and `productTSVB` respectively. The deprecated types now render the new glyphs, no longer appear in the icon documentation, and will be removed in a future release ([#9923](elastic/eui#9923)) - Deprecated the `menuDown` and `menuUp` `EuiIcon` types in favor of `transitionBottomOut` and `transitionTopOut` respectively. The deprecated types now render the new glyphs, no longer appear in the icon documentation, and will be removed in a future release ([#9923](elastic/eui#9923)) - Deprecated `EuiIcon` types with no replacement: ([#9884](elastic/eui#9884)) - `article` - `dotInCircle` - `kubernetesNode` - `scale` - `securitySignalDetected` - Deprecated `EuiIcon` types with a contextual replacement: ([#9884](elastic/eui#9884)) - `folderExclamation` — `linkSlash` (unlink) or `hourglass` (Cases status) - `stopFill` / `stopSlash` — `EuiColorPickerSwatch` for color chips or `stop` otherwise - Deprecated `EuiIcon` types (use the replacements): ([#9884](elastic/eui#9884)) - `analyzeEvent` → `cube` - `annotation` → `flag` - `anomalySwimLane` → `chartHeatmap` - `apps` → `grid` - `container` → `package` - `continuityAbove` → `upload` - `continuityWithin` → `maximize` - `esqlVis` → `query` - `fold` → `minimize` - `frameNext` → `chevronSingleRight` - `framePrevious` → `chevronSingleLeft` - `help` → `question` - `index` → `table` - `ip` → `tokenIP` - `logstashFilter` → `filter` - `logstashInput` → `download` - `logstashOutput` → `upload` - `payment` → `money` - `sessionViewer` → `commandLine` - `singleMetricViewer` → `chartArea` - `spaces` → `grid` - `starEmptySpace` → `star` - `starFillSpace` → `starFill` - `starMinusEmpty` → `star` - `starMinusFill` → `starFill` - `starPlusEmpty` → `star` - `starPlusFill` → `starFill` - `stats` → `chartLine` - `string` → `tokenString` - `tableOfContents` → `listBullet` - `unfold` → `maximize` - `visGoal` → `chartGauge` - `wordWrap` → `lineBreak` - `wordWrapDisabled` → `lineBreakSlash` **Breaking changes** - Removed unused `EuiIcon` types: ([#9884](elastic/eui#9884)) - `branchUser` - `continuityAboveBelow` - `continuityBelow` - `function` - `magnet` - `pageSelect` - `securitySignalResolved` - `tear` ### `@elastic/eslint-plugin-eui` [v3.0.0](https://github.com/elastic/eui/blob/main/packages/eslint-plugin/changelogs/CHANGELOG_2026.md) - Updated `button-group-no-invalid-children` rule to support checking button groups with `variant="selection"` ([#9950](elastic/eui#9950)) - Added new `button-group-selection-require-id` rule to enforce a required `id` prop on each child button of `EuiButtonGroup` with `variant="selection"` ([#9950](elastic/eui#9950)) - Updated `@elastic/eui/no-deprecated-icon-aliases` with the newly deprecated `cloudDrizzle`, `cloudStormy`, `cloudSunny`, `kqlFunction`, `menuDown`, `menuUp`, `namespace`, `visTimelion`, and `visVisualBuilder` icon aliases ([#9923](elastic/eui#9923)) - Updated `button-group-no-invalid-children` rule to support segmented variant checks ([#9890](elastic/eui#9890)) - Updated `no-deprecated-icon-aliases` with icons that have no replacement: ([#9884](elastic/eui#9884)) - `article` - `dotInCircle` - `kubernetesNode` - `scale` - `securitySignalDetected` - Updated `no-deprecated-icon-aliases` with icons that have a contextual replacement (warn only, no autofix): ([#9884](elastic/eui#9884)) - `folderExclamation` - `linkSlash` (unlink) or `hourglass` (Kibana Cases status) - `stopFill` / `stopSlash` - `EuiColorPickerSwatch` for color chips or `stop` otherwise - Updated `no-deprecated-icon-aliases` with new icon aliases: ([#9884](elastic/eui#9884)) - `analyzeEvent` → `cube` - `annotation` → `flag` - `anomalySwimLane` → `chartHeatmap` - `apps` → `grid` - `container` → `package` - `continuityAbove` → `upload` - `continuityWithin` → `maximize` - `esqlVis` → `query` - `fold` → `minimize` - `frameNext` → `chevronSingleRight` - `framePrevious` → `chevronSingleLeft` - `help` → `question` - `index` → `table` - `ip` → `tokenIP` - `logstashFilter` → `filter` - `logstashInput` → `download` - `logstashOutput` → `upload` - `payment` → `money` - `sessionViewer` → `commandLine` - `singleMetricViewer` → `chartArea` - `spaces` → `grid` - `starEmptySpace` → `star` - `starFillSpace` → `starFill` - `starMinusEmpty` → `star` - `starMinusFill` → `starFill` - `starPlusEmpty` → `star` - `starPlusFill` → `starFill` - `stats` → `chartLine` - `string` → `tokenString` - `tableOfContents` → `listBullet` - `unfold` → `maximize` - `visGoal` → `chartGauge` - `wordWrap` → `lineBreak` - `wordWrapDisabled` → `lineBreakSlash` - Updated `starFilledSpace`, `starMinusFilled` and `starPlusFilled` mappings to `starFill` ([#9884](elastic/eui#9884)) **Deprecations** - Updated deprecated icon alias mappings: ([#9974](elastic/eui#9974)) - `folderClosed` and `folderClose` → `folder` **Breaking changes** - Removed the `push` icon alias from `@elastic/eui/no-deprecated-icon-aliases`. `push` is now a supported `EuiIcon` glyph again and is no longer autofixed to `send` ([#9923](elastic/eui#9923)) ### `@elastic/eui-illustrations` [v1.0.2](https://github.com/elastic/eui/blob/main/packages/illustrations/changelogs/CHANGELOG_2026.md) **Bug fixes** - Fixed illustrations rendering cropped when more than one was inlined on the same page ([#9973](elastic/eui#9973)) ### `@elastic/eui-test-helpers` [v1.5.0](https://github.com/elastic/eui/blob/main/packages/test-helpers/changelogs/CHANGELOG_2026.md) - Added `EuiRangeObject`, a Playwright Component Object for `EuiRange`/`EuiDualRange` ([#9957](elastic/eui#9957)) - Added `EuiDraggableObject` with `reorder(steps)` ([#9936](elastic/eui#9936)) - Added `EuiBasicTableObject` with `rows` and `cells(field)` ([#9933](elastic/eui#9933)) - Added `EuiFilterButtonObject`, a Playwright Component Object for `EuiFilterButton` ([#9942](elastic/eui#9942))
juliaElastic
pushed a commit
to juliaElastic/kibana
that referenced
this pull request
Sep 4, 2026
## Dependency updates `@elastic/eui` - 119.1.0 ⏩ 120.0.0 `@elastic/eui-test-helpers` - 1.4.0 ⏩ 1.5.0 `@elastic/eslint-plugin-eui` - 2.16.0 ⏩ 3.0.0 `@elastic/eui-illustrations` - 1.0.1 ⏩ 1.0.2 > [!WARNING] > Removed unused `EuiIcon` types ([elastic#9884](elastic/eui#9884)): `branchUser`, `continuityAboveBelow`, `continuityBelow`, `function`, `magnet`, `pageSelect`, `securitySignalResolved`, `tear`. ## Package updates ### `@elastic/eui` [v120.0.0](https://github.com/elastic/eui/blob/main/packages/eui/changelogs/CHANGELOG_2026.md) - Updated `EuiButtonGroup` (Children API only): ([elastic#9929](elastic/eui#9929)) - Added `variant="selection"` to render the group as selection group - Added `type` prop (values `'single' | 'multi'`) to switch between single or multi selection - Added `display` prop (values: `'regular' | 'highlighted' | 'inverse'`) to render different visual variants - Added `idSelected` prop for single-state selection - Added `idToSelectedMap` prop for multi-state selection - Added `onChange` prop which returns the selected child button `id` - Added `cloudBolt`, `cloudRain`, `cloudSun`, `kubernetesNamespace`, `productTimelion`, `productTSVB`, `push`, `transitionRightIn`, and `transitionRightOut` glyphs to `EuiIcon` ([elastic#9923](elastic/eui#9923)) - Updated the `cube`, `memory`, and `wrench` glyphs in `EuiIcon` with redesigned artwork ([elastic#9923](elastic/eui#9923)) - Updated search synonyms for the `bolt`, `memory`, `plugs`, and `wrench` glyphs in `EuiIcon` ([elastic#9923](elastic/eui#9923)) - Updated `EuiResizableContainer` collapse buttons to use the `transition*` glyphs in place of the `menu*` glyphs ([elastic#9923](elastic/eui#9923)) - Hid undocumented `swatchInput` from glyph docs by categorizing it as `internal` ([elastic#9884](elastic/eui#9884)) **Bug fixes** - Fixed `EuiDatePicker` throwing an error in React 19 when opening the month or year dropdown ([elastic#9960](elastic/eui#9960)) - Fixed the icon documentation listing glyphs and Elastic logos out of alphabetical order ([elastic#9923](elastic/eui#9923)) **Deprecations** - Updated deprecated icon alias mappings: ([elastic#9974](elastic/eui#9974)) - `folderClosed` and `folderClose` → `folder` - Deprecated the `cloudDrizzle`, `cloudStormy`, `cloudSunny`, `kqlFunction`, `namespace`, `visTimelion`, and `visVisualBuilder` `EuiIcon` types in favor of `cloudRain`, `cloudBolt`, `cloudSun`, `push`, `kubernetesNamespace`, `productTimelion`, and `productTSVB` respectively. The deprecated types now render the new glyphs, no longer appear in the icon documentation, and will be removed in a future release ([elastic#9923](elastic/eui#9923)) - Deprecated the `menuDown` and `menuUp` `EuiIcon` types in favor of `transitionBottomOut` and `transitionTopOut` respectively. The deprecated types now render the new glyphs, no longer appear in the icon documentation, and will be removed in a future release ([elastic#9923](elastic/eui#9923)) - Deprecated `EuiIcon` types with no replacement: ([elastic#9884](elastic/eui#9884)) - `article` - `dotInCircle` - `kubernetesNode` - `scale` - `securitySignalDetected` - Deprecated `EuiIcon` types with a contextual replacement: ([elastic#9884](elastic/eui#9884)) - `folderExclamation` — `linkSlash` (unlink) or `hourglass` (Cases status) - `stopFill` / `stopSlash` — `EuiColorPickerSwatch` for color chips or `stop` otherwise - Deprecated `EuiIcon` types (use the replacements): ([elastic#9884](elastic/eui#9884)) - `analyzeEvent` → `cube` - `annotation` → `flag` - `anomalySwimLane` → `chartHeatmap` - `apps` → `grid` - `container` → `package` - `continuityAbove` → `upload` - `continuityWithin` → `maximize` - `esqlVis` → `query` - `fold` → `minimize` - `frameNext` → `chevronSingleRight` - `framePrevious` → `chevronSingleLeft` - `help` → `question` - `index` → `table` - `ip` → `tokenIP` - `logstashFilter` → `filter` - `logstashInput` → `download` - `logstashOutput` → `upload` - `payment` → `money` - `sessionViewer` → `commandLine` - `singleMetricViewer` → `chartArea` - `spaces` → `grid` - `starEmptySpace` → `star` - `starFillSpace` → `starFill` - `starMinusEmpty` → `star` - `starMinusFill` → `starFill` - `starPlusEmpty` → `star` - `starPlusFill` → `starFill` - `stats` → `chartLine` - `string` → `tokenString` - `tableOfContents` → `listBullet` - `unfold` → `maximize` - `visGoal` → `chartGauge` - `wordWrap` → `lineBreak` - `wordWrapDisabled` → `lineBreakSlash` **Breaking changes** - Removed unused `EuiIcon` types: ([elastic#9884](elastic/eui#9884)) - `branchUser` - `continuityAboveBelow` - `continuityBelow` - `function` - `magnet` - `pageSelect` - `securitySignalResolved` - `tear` ### `@elastic/eslint-plugin-eui` [v3.0.0](https://github.com/elastic/eui/blob/main/packages/eslint-plugin/changelogs/CHANGELOG_2026.md) - Updated `button-group-no-invalid-children` rule to support checking button groups with `variant="selection"` ([elastic#9950](elastic/eui#9950)) - Added new `button-group-selection-require-id` rule to enforce a required `id` prop on each child button of `EuiButtonGroup` with `variant="selection"` ([elastic#9950](elastic/eui#9950)) - Updated `@elastic/eui/no-deprecated-icon-aliases` with the newly deprecated `cloudDrizzle`, `cloudStormy`, `cloudSunny`, `kqlFunction`, `menuDown`, `menuUp`, `namespace`, `visTimelion`, and `visVisualBuilder` icon aliases ([elastic#9923](elastic/eui#9923)) - Updated `button-group-no-invalid-children` rule to support segmented variant checks ([elastic#9890](elastic/eui#9890)) - Updated `no-deprecated-icon-aliases` with icons that have no replacement: ([elastic#9884](elastic/eui#9884)) - `article` - `dotInCircle` - `kubernetesNode` - `scale` - `securitySignalDetected` - Updated `no-deprecated-icon-aliases` with icons that have a contextual replacement (warn only, no autofix): ([elastic#9884](elastic/eui#9884)) - `folderExclamation` - `linkSlash` (unlink) or `hourglass` (Kibana Cases status) - `stopFill` / `stopSlash` - `EuiColorPickerSwatch` for color chips or `stop` otherwise - Updated `no-deprecated-icon-aliases` with new icon aliases: ([elastic#9884](elastic/eui#9884)) - `analyzeEvent` → `cube` - `annotation` → `flag` - `anomalySwimLane` → `chartHeatmap` - `apps` → `grid` - `container` → `package` - `continuityAbove` → `upload` - `continuityWithin` → `maximize` - `esqlVis` → `query` - `fold` → `minimize` - `frameNext` → `chevronSingleRight` - `framePrevious` → `chevronSingleLeft` - `help` → `question` - `index` → `table` - `ip` → `tokenIP` - `logstashFilter` → `filter` - `logstashInput` → `download` - `logstashOutput` → `upload` - `payment` → `money` - `sessionViewer` → `commandLine` - `singleMetricViewer` → `chartArea` - `spaces` → `grid` - `starEmptySpace` → `star` - `starFillSpace` → `starFill` - `starMinusEmpty` → `star` - `starMinusFill` → `starFill` - `starPlusEmpty` → `star` - `starPlusFill` → `starFill` - `stats` → `chartLine` - `string` → `tokenString` - `tableOfContents` → `listBullet` - `unfold` → `maximize` - `visGoal` → `chartGauge` - `wordWrap` → `lineBreak` - `wordWrapDisabled` → `lineBreakSlash` - Updated `starFilledSpace`, `starMinusFilled` and `starPlusFilled` mappings to `starFill` ([elastic#9884](elastic/eui#9884)) **Deprecations** - Updated deprecated icon alias mappings: ([elastic#9974](elastic/eui#9974)) - `folderClosed` and `folderClose` → `folder` **Breaking changes** - Removed the `push` icon alias from `@elastic/eui/no-deprecated-icon-aliases`. `push` is now a supported `EuiIcon` glyph again and is no longer autofixed to `send` ([elastic#9923](elastic/eui#9923)) ### `@elastic/eui-illustrations` [v1.0.2](https://github.com/elastic/eui/blob/main/packages/illustrations/changelogs/CHANGELOG_2026.md) **Bug fixes** - Fixed illustrations rendering cropped when more than one was inlined on the same page ([elastic#9973](elastic/eui#9973)) ### `@elastic/eui-test-helpers` [v1.5.0](https://github.com/elastic/eui/blob/main/packages/test-helpers/changelogs/CHANGELOG_2026.md) - Added `EuiRangeObject`, a Playwright Component Object for `EuiRange`/`EuiDualRange` ([elastic#9957](elastic/eui#9957)) - Added `EuiDraggableObject` with `reorder(steps)` ([elastic#9936](elastic/eui#9936)) - Added `EuiBasicTableObject` with `rows` and `cells(field)` ([elastic#9933](elastic/eui#9933)) - Added `EuiFilterButtonObject`, a Playwright Component Object for `EuiFilterButton` ([elastic#9942](elastic/eui#9942))
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
Adds
EuiFilterButtonObject, a Playwright Component Object for EuiFilterButton, following the package's CONTRIBUTING guide.No live Scout consumer exists yet, so this skips the usual kbn-scout prototype/validation step from the guide's lifecycle. It found evidence in Kibana's FTR suite instead. Three independently-authored FTR page objects (ML notifications, Lens tagging, Uptime filters) each reimplement the same filter-dropdown open/select/apply flow with incompatible, brittle selector strategies, forced by a real gap. EuiFilterButton and EuiFilterSelectItem expose no stable per-option hook. Validated against Storybook only for this v1, a real Scout consumer migrating onto it is the next real validation pass.
API
Deliberately minimal. Reading the actual EuiFilterButton/EuiPopover source changed the original scope:
notificationBadge: aLocatorfor the filter-count badge (present only whennumFilters/numActiveFiltersis set).euiFilterButton-hasActiveFilters,euiFilterButton-isSelected) is asserted directly on the inherited rootLocatorrather than through a dedicated method. Both are synchronous CSS classes EUI already sets, no helper needed to read them.Deliberately excluded from v1
EuiPopoveralready setsaria-expanded/aria-controlson its toggle synchronously itself. Building that in here would duplicate scope already covered generically by EUI, andEuiPopoveritself was separately evaluated and parked as too thin to warrant its own helper.EuiSelectable(the modern pattern,EuiFilterSelectItemis deprecated in favor of it), compose with the existingEuiSelectableObjectinstead of reimplementing option matching here.Testing
tsc --noEmitclean. 3 Playwright validation specs pass against Storybook (Forms/EuiFilterButton, Playground story), covering the active-filters class, the notification badge count, and the isSelected variant.