Skip to content

[scout] re-org test directory#226411

Merged
dmlemeshko merged 21 commits intoelastic:mainfrom
dmlemeshko:scout/test-dirs-update
Jul 8, 2025
Merged

[scout] re-org test directory#226411
dmlemeshko merged 21 commits intoelastic:mainfrom
dmlemeshko:scout/test-dirs-update

Conversation

@dmlemeshko
Copy link
Copy Markdown
Contributor

@dmlemeshko dmlemeshko commented Jul 3, 2025

Summary

Since Scout will soon support api testing, we need to re-org scout test directory so that both ui and api playwright configs can be discovered and executed independently. Proposed structure:

- plugin
 |- test
   |- scout
     |- common // fixtures/constants to share across both 'ui' and 'api' tests
     |- ui
        |-tests
        |-parallel_tests
        |-playwright.config.ts
        |-playwright.parallel.config.ts
     |- api
        |-tests
        |-parallel_tests
        |-playwright.config.ts
        |-playwright.parallel.config.ts

This PR updates all the existing scout directories

@dmlemeshko dmlemeshko self-assigned this Jul 3, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jul 3, 2025

🔍 Preview links for changed docs

@dmlemeshko dmlemeshko added v9.1.0 v8.19.0 v9.2.0 release_note:skip Skip the PR/issue when compiling release notes backport:version Backport to applied version labels labels Jul 3, 2025
@dmlemeshko dmlemeshko marked this pull request as ready for review July 4, 2025 06:11
@dmlemeshko dmlemeshko requested review from a team as code owners July 4, 2025 06:11
@dmlemeshko dmlemeshko requested a review from a team July 4, 2025 06:11
@dmlemeshko dmlemeshko requested a review from a team as a code owner July 4, 2025 06:11
@dmlemeshko dmlemeshko requested a review from pheyos July 7, 2025 14:20
Copy link
Copy Markdown
Member

@pheyos pheyos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dmlemeshko dmlemeshko enabled auto-merge (squash) July 7, 2025 16:08
@dmlemeshko dmlemeshko merged commit 5d49f1b into elastic:main Jul 8, 2025
13 checks passed
@kibanamachine
Copy link
Copy Markdown
Contributor

Starting backport for target branches: 8.19, 9.1

https://github.com/elastic/kibana/actions/runs/16142490322

@kibanamachine
Copy link
Copy Markdown
Contributor

💔 All backports failed

Status Branch Result
8.19 Backport failed because of merge conflicts
9.1 Backport failed because of merge conflicts

Manual backport

To create the backport manually run:

node scripts/backport --pr 226411

Questions ?

Please refer to the Backport tool documentation

@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Jul 10, 2025
@kibanamachine
Copy link
Copy Markdown
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add a backport:* label or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 226411 locally
cc: @dmlemeshko

2 similar comments
@kibanamachine
Copy link
Copy Markdown
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add a backport:* label or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 226411 locally
cc: @dmlemeshko

@kibanamachine
Copy link
Copy Markdown
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add a backport:* label or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 226411 locally
cc: @dmlemeshko

dmlemeshko added a commit to dmlemeshko/kibana that referenced this pull request Jul 15, 2025
## Summary

Since Scout will soon support `api` testing, we need to re-org scout
test directory so that both ui and api playwright configs can be
discovered and executed independently. Proposed structure:

```
- plugin
 |- test
   |- scout
     |- common // fixtures/constants to share across both 'ui' and 'api' tests
     |- ui
        |-tests
        |-parallel_tests
        |-playwright.config.ts
        |-playwright.parallel.config.ts
     |- api
        |-tests
        |-parallel_tests
        |-playwright.config.ts
        |-playwright.parallel.config.ts
```

This PR updates all the existing scout directories

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 5d49f1b)

# Conflicts:
#	.github/CODEOWNERS
#	x-pack/platform/plugins/shared/onechat/public/application/pages/chat.tsx
#	x-pack/solutions/observability/plugins/observability/test/scout/README.md
#	x-pack/solutions/observability/plugins/observability/test/scout/ui/fixtures/generators.ts
#	x-pack/solutions/observability/plugins/observability/test/scout/ui/playwright.config.ts
#	x-pack/solutions/observability/plugins/observability/test/scout/ui/tests/landing.spec.ts
#	x-pack/solutions/observability/plugins/observability/tsconfig.json
#	x-pack/solutions/observability/plugins/observability/ui_tests/playwright.config.ts
@dmlemeshko
Copy link
Copy Markdown
Contributor Author

💚 All backports created successfully

Status Branch Result
9.1

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

dmlemeshko added a commit that referenced this pull request Jul 15, 2025
# Backport

This will backport the following commits from `main` to `9.1`:
- [[scout] re-org test directory
(#226411)](#226411)

<!--- Backport version: 10.0.1 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Dzmitry
Lemechko","email":"dzmitry.lemechko@elastic.co"},"sourceCommit":{"committedDate":"2025-07-08T11:54:40Z","message":"[scout]
re-org test directory (#226411)\n\n## Summary\n\nSince Scout will soon
support `api` testing, we need to re-org scout\ntest directory so that
both ui and api playwright configs can be\ndiscovered and executed
independently. Proposed structure:\n\n```\n- plugin\n |- test\n |-
scout\n |- common // fixtures/constants to share across both 'ui' and
'api' tests\n |- ui\n |-tests\n |-parallel_tests\n
|-playwright.config.ts\n |-playwright.parallel.config.ts\n |- api\n
|-tests\n |-parallel_tests\n |-playwright.config.ts\n
|-playwright.parallel.config.ts\n```\n\nThis PR updates all the existing
scout directories\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"5d49f1bb0de978e1896254378161c3da23a7d8e6","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport
missing","Team:obs-ux-infra_services","Team:obs-ux-management","backport:version","v9.1.0","v8.19.0","v9.2.0"],"title":"[scout]
re-org test
directory","number":226411,"url":"https://github.com/elastic/kibana/pull/226411","mergeCommit":{"message":"[scout]
re-org test directory (#226411)\n\n## Summary\n\nSince Scout will soon
support `api` testing, we need to re-org scout\ntest directory so that
both ui and api playwright configs can be\ndiscovered and executed
independently. Proposed structure:\n\n```\n- plugin\n |- test\n |-
scout\n |- common // fixtures/constants to share across both 'ui' and
'api' tests\n |- ui\n |-tests\n |-parallel_tests\n
|-playwright.config.ts\n |-playwright.parallel.config.ts\n |- api\n
|-tests\n |-parallel_tests\n |-playwright.config.ts\n
|-playwright.parallel.config.ts\n```\n\nThis PR updates all the existing
scout directories\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"5d49f1bb0de978e1896254378161c3da23a7d8e6"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","8.19"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/226411","number":226411,"mergeCommit":{"message":"[scout]
re-org test directory (#226411)\n\n## Summary\n\nSince Scout will soon
support `api` testing, we need to re-org scout\ntest directory so that
both ui and api playwright configs can be\ndiscovered and executed
independently. Proposed structure:\n\n```\n- plugin\n |- test\n |-
scout\n |- common // fixtures/constants to share across both 'ui' and
'api' tests\n |- ui\n |-tests\n |-parallel_tests\n
|-playwright.config.ts\n |-playwright.parallel.config.ts\n |- api\n
|-tests\n |-parallel_tests\n |-playwright.config.ts\n
|-playwright.parallel.config.ts\n```\n\nThis PR updates all the existing
scout directories\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"5d49f1bb0de978e1896254378161c3da23a7d8e6"}}]}]
BACKPORT-->
@kibanamachine kibanamachine removed the backport missing Added to PRs automatically when the are determined to be missing a backport. label Jul 15, 2025
dmlemeshko added a commit to dmlemeshko/kibana that referenced this pull request Jul 16, 2025
## Summary

Since Scout will soon support `api` testing, we need to re-org scout
test directory so that both ui and api playwright configs can be
discovered and executed independently. Proposed structure:

```
- plugin
 |- test
   |- scout
     |- common // fixtures/constants to share across both 'ui' and 'api' tests
     |- ui
        |-tests
        |-parallel_tests
        |-playwright.config.ts
        |-playwright.parallel.config.ts
     |- api
        |-tests
        |-parallel_tests
        |-playwright.config.ts
        |-playwright.parallel.config.ts
```

This PR updates all the existing scout directories

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 5d49f1b)

# Conflicts:
#	.github/CODEOWNERS
#	src/platform/packages/shared/kbn-scout/src/config/discovery/search_configs.ts
#	x-pack/platform/packages/private/ml/kibana_theme/tsconfig.json
#	x-pack/solutions/observability/plugins/apm/test/scout/README.md
#	x-pack/solutions/observability/plugins/apm/test/scout/ui/fixtures/constants.ts
#	x-pack/solutions/observability/plugins/apm/test/scout/ui/fixtures/index.ts
#	x-pack/solutions/observability/plugins/apm/test/scout/ui/fixtures/page_objects/service_inventory.ts
#	x-pack/solutions/observability/plugins/apm/test/scout/ui/fixtures/page_objects/service_map.ts
#	x-pack/solutions/observability/plugins/apm/test/scout/ui/fixtures/synthtrace/opbeans.ts
#	x-pack/solutions/observability/plugins/apm/test/scout/ui/parallel.playwright.config.ts
#	x-pack/solutions/observability/plugins/apm/test/scout/ui/parallel_tests/global_setup.ts
#	x-pack/solutions/observability/plugins/apm/test/scout/ui/parallel_tests/service_inventory/service_inventory.spec.ts
#	x-pack/solutions/observability/plugins/apm/test/scout/ui/parallel_tests/sevice_map/service_map.spec.ts
#	x-pack/solutions/observability/plugins/apm/test/scout/ui/tsconfig.json
#	x-pack/solutions/observability/plugins/apm/ui_tests/fixtures/constants.ts
#	x-pack/solutions/observability/plugins/apm/ui_tests/parallel.playwright.config.ts
#	x-pack/solutions/observability/plugins/apm/ui_tests/tsconfig.json
#	x-pack/solutions/observability/plugins/observability/test/scout/README.md
#	x-pack/solutions/observability/plugins/observability/test/scout/ui/fixtures/generators.ts
#	x-pack/solutions/observability/plugins/observability/test/scout/ui/playwright.config.ts
#	x-pack/solutions/observability/plugins/observability/test/scout/ui/tests/landing.spec.ts
#	x-pack/solutions/observability/plugins/observability/tsconfig.json
#	x-pack/solutions/observability/plugins/observability/ui_tests/playwright.config.ts
#	x-pack/solutions/observability/plugins/observability_onboarding/README.md
#	x-pack/solutions/search/plugins/enterprise_search/public/applications/app_search/components/documents/constants.ts
#	x-pack/solutions/search/plugins/search_indices/public/components/index_documents/constants.ts
#	x-pack/test/kubernetes_security/basic/config.ts
@dmlemeshko
Copy link
Copy Markdown
Contributor Author

💚 All backports created successfully

Status Branch Result
8.19

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

dmlemeshko added a commit that referenced this pull request Jul 16, 2025
# Backport

This will backport the following commits from `main` to `8.19`:
- [[scout] re-org test directory
(#226411)](#226411)

<!--- Backport version: 10.0.1 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Dzmitry
Lemechko","email":"dzmitry.lemechko@elastic.co"},"sourceCommit":{"committedDate":"2025-07-08T11:54:40Z","message":"[scout]
re-org test directory (#226411)\n\n## Summary\n\nSince Scout will soon
support `api` testing, we need to re-org scout\ntest directory so that
both ui and api playwright configs can be\ndiscovered and executed
independently. Proposed structure:\n\n```\n- plugin\n |- test\n |-
scout\n |- common // fixtures/constants to share across both 'ui' and
'api' tests\n |- ui\n |-tests\n |-parallel_tests\n
|-playwright.config.ts\n |-playwright.parallel.config.ts\n |- api\n
|-tests\n |-parallel_tests\n |-playwright.config.ts\n
|-playwright.parallel.config.ts\n```\n\nThis PR updates all the existing
scout directories\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"5d49f1bb0de978e1896254378161c3da23a7d8e6","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:obs-ux-infra_services","Team:obs-ux-management","backport:version","v9.1.0","v8.19.0","v9.2.0"],"title":"[scout]
re-org test
directory","number":226411,"url":"https://github.com/elastic/kibana/pull/226411","mergeCommit":{"message":"[scout]
re-org test directory (#226411)\n\n## Summary\n\nSince Scout will soon
support `api` testing, we need to re-org scout\ntest directory so that
both ui and api playwright configs can be\ndiscovered and executed
independently. Proposed structure:\n\n```\n- plugin\n |- test\n |-
scout\n |- common // fixtures/constants to share across both 'ui' and
'api' tests\n |- ui\n |-tests\n |-parallel_tests\n
|-playwright.config.ts\n |-playwright.parallel.config.ts\n |- api\n
|-tests\n |-parallel_tests\n |-playwright.config.ts\n
|-playwright.parallel.config.ts\n```\n\nThis PR updates all the existing
scout directories\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"5d49f1bb0de978e1896254378161c3da23a7d8e6"}},"sourceBranch":"main","suggestedTargetBranches":["8.19"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/227936","number":227936,"state":"MERGED","mergeCommit":{"sha":"b161e45ccb15fd7f3108fdad8bea31a9e186dcc4","message":"[9.1]
[scout] re-org test directory (#226411) (#227936)\n\n# Backport\n\nThis
will backport the following commits from `main` to `9.1`:\n- [[scout]
re-org test
directory\n(#226411)](https://github.com/elastic/kibana/pull/226411)\n\n\n\n###
Questions ?\nPlease refer to the [Backport
tool\ndocumentation](https://github.com/sorenlouv/backport)\n\n"}},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/226411","number":226411,"mergeCommit":{"message":"[scout]
re-org test directory (#226411)\n\n## Summary\n\nSince Scout will soon
support `api` testing, we need to re-org scout\ntest directory so that
both ui and api playwright configs can be\ndiscovered and executed
independently. Proposed structure:\n\n```\n- plugin\n |- test\n |-
scout\n |- common // fixtures/constants to share across both 'ui' and
'api' tests\n |- ui\n |-tests\n |-parallel_tests\n
|-playwright.config.ts\n |-playwright.parallel.config.ts\n |- api\n
|-tests\n |-parallel_tests\n |-playwright.config.ts\n
|-playwright.parallel.config.ts\n```\n\nThis PR updates all the existing
scout directories\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"5d49f1bb0de978e1896254378161c3da23a7d8e6"}}]}]
BACKPORT-->

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
kertal pushed a commit to kertal/kibana that referenced this pull request Jul 25, 2025
## Summary

Since Scout will soon support `api` testing, we need to re-org scout
test directory so that both ui and api playwright configs can be
discovered and executed independently. Proposed structure:

```
- plugin
 |- test
   |- scout
     |- common // fixtures/constants to share across both 'ui' and 'api' tests
     |- ui
        |-tests
        |-parallel_tests
        |-playwright.config.ts
        |-playwright.parallel.config.ts
     |- api
        |-tests
        |-parallel_tests
        |-playwright.config.ts
        |-playwright.parallel.config.ts
```

This PR updates all the existing scout directories

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels release_note:skip Skip the PR/issue when compiling release notes Team:actionable-obs Formerly "obs-ux-management", responsible for SLO, o11y alerting, significant events, & synthetics. Team:obs-ux-infra_services - DEPRECATED DEPRECATED - Use Team:obs-presentation. v8.19.0 v9.1.0 v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.