Repository navigation
[test-helpers] Add EuiDraggableObject - #9936
Merged
steliosmavro merged 7 commits intoAug 27, 2026
Merged
Conversation
Adds a WithStableTestSubjects EuiDroppable story fixture (per-item data-test-subj that survives a reorder, unlike the generic examples which default every item to the same subj) to validate against.
Verify testSubj resolves to an enabled drag handle via the data-rfd-drag-handle-draggable-id attribute @hello-pangea/dnd sets, instead of silently no-oping. Adds a spec covering the disabled case.
weronikaolejniczak
self-requested a review
August 25, 2026 10:04
- Drop the dedicated WithStableTestSubjects fixture story; add data-test-subj directly to EuiDroppable's existing Playground story instead, per review — Playground already covers this, no separate story needed. Removes its stale VRT baselines. - Move the [data-rfd-draggable-id] selector into selectors.ts. - Shorten the class/method doc comments; the detail moved to the package README. - Remove the disabled-draggable validation test — it was closer to testing EuiDraggable's own rendering behavior than the helper. Addresses review feedback from @weronikaolejniczak.
weronikaolejniczak
requested changes
Aug 25, 2026
weronikaolejniczak
left a comment
Contributor
There was a problem hiding this comment.
Let's resolve the conflicts with main.
Contributor
Author
|
Thanks for the review @weronikaolejniczak ! I resolved the conflicts from the previously added helper changes. |
weronikaolejniczak
left a comment
Contributor
There was a problem hiding this comment.
- README says "put
testSubjon the handle, not on theEuiDraggablewrapper" but in Playground we put it on<EuiDraggable>. We should update README to be more clear in what cases this is necessary. - PR description is stale with the recent changes.
data-test-subj on <EuiDraggable> in Playground is correct: with the
default customDragHandle={false}, EUI spreads dragHandleProps onto
the same element as draggableProps, so the wrapper IS the handle.
Only a custom drag handle moves it to a separate inner element.
Previous wording implied they're always different elements.
Addresses review feedback from @weronikaolejniczak.
💚 Build Succeeded
History
|
💚 Build Succeeded
History
|
steliosmavro
added a commit
to steliosmavro/eui
that referenced
this pull request
Aug 25, 2026
Per Weronika's review feedback on the EuiDraggableObject PR (elastic#9936): comments should be short pointers to the README, not repeat the full rationale in the code too, and specs should not assert on EuiRange's own behavior (the number input mirroring the slider's value), only on this helper's own disambiguation.
weronikaolejniczak
approved these changes
Aug 27, 2026
weronikaolejniczak
left a comment
Contributor
There was a problem hiding this comment.
LGTM 🟢 Thanks, Stelios!
AmirmAfzal
pushed a commit
to AmirmAfzal/eui
that referenced
this pull request
Aug 27, 2026
Co-authored-by: kibanamachine <[email protected]>
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
Co-authored-by: kibanamachine <[email protected]>
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
EuiDraggableObject, a Playwright Component Object that keyboard-reordersEuiDraggableitems, following the package's CONTRIBUTING guide.Prototyped and validated against a real Kibana consumer first per the guide's lifecycle. Kibana PR: elastic/kibana#286130 (CI green, 8/8 + 20/20 on a repeat-3 flake check).
API
reorder(steps): focuses the handle, lifts it (Space), moves itstepspositions (ArrowDown/ArrowUp), drops it (Space). Deliberately keyboard-only — that's the accessible interaction@hello-pangea/dnd(whichEuiDraggablewraps) itself supports, and it's how every real consumer already drives it. No mouse-drag simulation.testSubjtargets the item's own drag handle. With the defaultcustomDragHandle={false}that's theEuiDraggableitem itself (EUI spreadsdragHandlePropsonto the same element asdraggablePropsin that case); with a custom handle it's that inner element instead. A component-type guard verifiestestSubjactually resolves to an enabled handle (via thedata-rfd-drag-handle-draggable-idattribute@hello-pangea/dndsets), rather than silently no-oping on a non-handle element.A finding from authoring this
The design initially included a settle-wait after dropping (waiting for a
euiDraggable--isDraggingclass to clear), mirrored from a Kibana consumer that checked for it. That class hasn't existed since this component's styling moved to Emotion — the check was a no-op in both current EUImainand the@elastic/euiversion Kibana has installed. Dropped it rather than replace it with something that verifies nothing; consumers should assert the resulting order with a retryingexpect, which settles on its own.Testing
tsc --noEmitclean. Playwright validation specs pass against Storybook (Display/EuiDroppable→Playground, withdata-test-subjadded to its two items): 3/3, covering forward reorder, backward reorder, and identity persistence after a move.