Repository navigation
[test-helpers] Add EuiBasicTableObject - #9933
Merged
steliosmavro merged 4 commits intoAug 25, 2026
Merged
Conversation
mgadewoll
self-requested a review
August 24, 2026 13:24
mgadewoll
reviewed
Aug 24, 2026
…ame collision - The 'no column with field' error surfaced the internally-escaped regex pattern instead of the original field string (e.g. a caller passing 'a.b' would see 'a\.b' in the message). Pass the original field through separately and use it in the message. - Document that a computed column's data-test-subj is generated from its 'name' using the same tableHeaderCell_<x>_<index> shape a field-data column uses for 'field' — cells() can't distinguish the two from the DOM alone, so a same-named computed column is an edge case worth knowing about. Addresses review feedback from @mgadewoll.
💚 Build Succeeded
History
|
💚 Build Succeeded
History
|
mgadewoll
approved these changes
Aug 25, 2026
mgadewoll
left a comment
Contributor
There was a problem hiding this comment.
🟢 LGTM. Thanks for the updates!
AmirmAfzal
pushed a commit
to AmirmAfzal/eui
that referenced
this pull request
Aug 27, 2026
steliosmavro
added a commit
to elastic/kibana
that referenced
this pull request
Aug 31, 2026
…Table/EuiDraggable prototypes (#288112) ## Summary Consume the released [`@elastic/[email protected]`](https://www.npmjs.com/package/@elastic/eui-test-helpers) in Kibana and drop the two remaining in-repo prototype Component Objects, now that both EUI ports (elastic/eui#9933, elastic/eui#9936) are merged and published. apps-dx elastic/apps-dx#100, elastic/apps-dx#104. ## Changes - Bump `@elastic/eui-test-helpers` `1.4.0` -> `1.5.0` (adds `EuiBasicTableObject`, `EuiDraggableObject`, plus `EuiFilterButtonObject`/`EuiRangeObject` which have no Kibana consumer yet) - `eui_components/index.ts` now re-exports `EuiBasicTableObject` and `EuiDraggableObject` from the package instead of the local prototype files - Delete the two prototype files (`basic_table_object.ts`, `draggable_object.ts`) No more local prototypes remain in `eui_components`, every Component Object it exposes now comes from the published package. ## Validation Type check green (kbn-scout), lint green. Both objects are byte-identical in behavior to the prototypes already validated across every Scout lane in their original prototyping PRs (#285999 for BasicTable, #286130 for Draggable). This PR only changes where they are imported from.
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
EuiBasicTableObject, a Playwright Component Object forEuiBasicTable(also coversEuiInMemoryTable, which renders aEuiBasicTableunderneath and passesdata-test-subjstraight through), following the package's CONTRIBUTING guide.Prototyped and validated against a real Kibana consumer first per the guide's lifecycle. Kibana PR: elastic/kibana#285999 (CI green, 8/8 + 24/24 on a repeat-3 flake check).
API
Deliberately minimal, per the package's "minimal public API" principle — only what the validating consumer (a maintenance windows table) actually needed:
rows: aLocatorfor the table's data rows, excluding EUI's own "no items found"/error-message row (detected via thecolspanHTML attribute EUI sets on that row's single cell — real data rows don't set it).cells(field): aLocatorfor a field-data column's cells across all rows, resolved from EUI's own header test-subj (tableHeaderCell_<field>_<digits>, matched exactly to avoid astatus/status_detail-style collision) via the header's nativecellIndex, then read positionally — matches both<td>and<th>since arowHeadercolumn renders as<th scope="row">.Both return
Locators rather than value snapshots, so callers get retrying assertions for free.Deliberately excluded from v1
Testing
tsc --noEmitclean. Playwright validation specs pass against Storybook (Tabular Content/EuiBasicTablePlayground + EmptyTable stories): 5/5, covering checkbox-offset column resolution, therowHeader/<th>case (caught a real off-by-selector-tag bug during authoring — fixed), the empty-state row exclusion, and an unknown-field rejection.