Skip to content

[9.3] [Upgrade Assistant] Migrate Kibana deprecations flaky integration tests to unit tests (#258981)#260129

Merged
kapral18 merged 1 commit intoelastic:9.3from
kapral18:backport/9.3/pr-258981
Mar 31, 2026
Merged

[9.3] [Upgrade Assistant] Migrate Kibana deprecations flaky integration tests to unit tests (#258981)#260129
kapral18 merged 1 commit intoelastic:9.3from
kapral18:backport/9.3/pr-258981

Conversation

@kapral18
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 9.3:

Questions ?

Please refer to the Backport tool documentation

@kapral18 kapral18 requested a review from kibanamachine as a code owner March 28, 2026 01:12
@kapral18 kapral18 added the backport This PR is a backport of another PR label Mar 28, 2026
@kapral18 kapral18 enabled auto-merge (squash) March 28, 2026 01:12
@kapral18 kapral18 force-pushed the backport/9.3/pr-258981 branch from d3b8403 to 5b13485 Compare March 30, 2026 00:27
…ts to unit tests (elastic#258981)

## Summary
- Migrates Kibana deprecations coverage from flaky client integration
tests to focused unit tests.
- Adds unit coverage for the Kibana deprecations list/table (refresh,
counts, filters/clear, details link) and the details flyout (manual
steps, docs link, quick resolve success/failure).
- Removes legacy `__jest__/client_integration/kibana_deprecations` specs
and drops `shared_imports` usage in favor of
`@kbn/es-ui-shared-plugin/public` imports.

## Closes
- Closes elastic#253915

## Coverage mapping
- [Integration → unit test mapping
(gist)](https://gist.github.com/kapral18/a3d2f778d575daa2f3dfcd8e0f4b66e4)

## Test plan
- [x] `node scripts/check_changes.ts`
- [x] `yarn test:jest
x-pack/platform/plugins/private/upgrade_assistant/public/application/components/kibana_deprecations
--silent`

Assisted with Cursor using GPT-5.2

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
(cherry picked from commit 5c40b03)

# Conflicts:
#	x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/kibana_deprecations/deprecation_details_flyout/deprecation_details_flyout.test.ts
#	x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/kibana_deprecations/deprecations_table/deprecations_table.test.ts
#	x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/kibana_deprecations/deprecations_table/error_handling.test.ts
@kapral18 kapral18 force-pushed the backport/9.3/pr-258981 branch from 5b13485 to ef79088 Compare March 30, 2026 13:20
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

Unknown metric groups

References to deprecated APIs

id before after diff
upgradeAssistant 24 20 -4

History

@kapral18 kapral18 merged commit a18d360 into elastic:9.3 Mar 31, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants