Skip to content

[9.3] [FTR to Scout] Migrate x-pack dashboard group2 tests (#249233)#252037

Merged
csr merged 7 commits intoelastic:9.3from
csr:backport/9.3/pr-249233
Feb 17, 2026
Merged

[9.3] [FTR to Scout] Migrate x-pack dashboard group2 tests (#249233)#252037
csr merged 7 commits intoelastic:9.3from
csr:backport/9.3/pr-249233

Conversation

@csr
Copy link
Copy Markdown
Member

@csr csr commented Feb 6, 2026

Backport

This will backport the following commits from main to 9.3:

Questions ?

Please refer to the Backport tool documentation

@csr csr requested a review from kibanamachine as a code owner February 6, 2026 09:28
@csr csr added the backport This PR is a backport of another PR label Feb 6, 2026
@csr csr enabled auto-merge (squash) February 6, 2026 09:28
)

This PR migrates the all FTR tests belonging to the
`x-pack/platform/test/functional/apps/dashboard/group2/config.ts` config
to Scout.

## Migration

All tests were migrated and older tests deleted. We still maintain the
**same** test coverage.

## Results

* **Scout tests are over 4x faster** tests than FTR 🚀 Total runtime:
Scout (**7 seconds**) vs FTR (**29 seconds**)
* Most of these tests are designed to run on **both local deployments**
and **Elastic Cloud** ("deployment-agnostic"). The FTR tests only ran on
local stateful. Scout makes this easy to achieve: we just need to write
the test once and add the appropriate tags!

### Why are Scout tests faster?

* Scout uses two parallel workers to run the tests.
* We ingest Elasticsearch archives just once, in the [global setup
hook](https://docs.elastic.dev/appex-qa/scout/global-setup-hook), before
test execution start.
* FTR test cases that shared identical parts of the user flow were
merged into a single Scout test case.
* We keep [Scout best
practices](https://docs.elastic.dev/appex-qa/scout/best-practices) in
mind: we use Playwright auto-waiting, we design page objects to be
performant, and more.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 50444e3)
Co-authored-by: Cursor <cursoragent@cursor.com>

# Conflicts:
#	.buildkite/scout_ci_config.yml
#	src/platform/packages/shared/kbn-scout/src/playwright/page_objects/dashboard_app.ts
#	src/platform/packages/shared/kbn-scout/src/playwright/page_objects/discover_app.ts
#	src/platform/packages/shared/response-ops/alerts-table/components/default_cell.tsx
#	src/platform/plugins/shared/dashboard/moon.yml
#	src/platform/plugins/shared/dashboard/tsconfig.json
#	x-pack/platform/test/functional/apps/dashboard/group2/dashboard_panel_listing.ts
#	x-pack/platform/test/functional/apps/dashboard/group2/migration_smoke_tests/controls_migration_smoke_test.ts
#	x-pack/platform/test/functional/apps/dashboard/group2/migration_smoke_tests/lens_migration_smoke_test.ts
#	x-pack/platform/test/functional/apps/dashboard/group2/migration_smoke_tests/tsvb_migration_smoke_test.ts
#	x-pack/platform/test/functional/apps/dashboard/group2/migration_smoke_tests/visualize_migration_smoke_test.ts
@csr csr force-pushed the backport/9.3/pr-249233 branch from 4b70320 to 8774cd5 Compare February 6, 2026 09:56
@csr csr requested a review from a team February 17, 2026 09:46
@elasticmachine
Copy link
Copy Markdown
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] Jest Tests #11 / AuthConfig renders AuthConfig with showOAuth2Option on validates additionalFields input for invalid JSON
  • [job] [logs] Jest Tests #3 / search_bar should render search bar and fetch index pattern

Metrics [docs]

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
@kbn/scout 241 246 +5
@kbn/scout-oblt 247 252 +5
@kbn/scout-search 236 241 +5
@kbn/scout-security 245 250 +5
total +20

Public APIs missing exports

Total count of every type that is part of your API that should be exported but is not. This will cause broken links in the API documentation system. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats exports for more detailed information.

id before after diff
@kbn/scout 28 30 +2
Unknown metric groups

API count

id before after diff
@kbn/scout 604 609 +5
@kbn/scout-oblt 596 601 +5
@kbn/scout-search 585 590 +5
@kbn/scout-security 594 599 +5
total +20

ESLint disabled line counts

id before after diff
@kbn/scout 8 7 -1

References to deprecated APIs

id before after diff
@kbn/scout 9 12 +3

Total ESLint disabled count

id before after diff
@kbn/scout 10 9 -1

History

@csr csr merged commit a4326de into elastic:9.3 Feb 17, 2026
13 checks passed
@csr csr deleted the backport/9.3/pr-249233 branch February 17, 2026 09:54
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.

4 participants