Skip to content

[9.1] [scout] re-org test directory (#226411)#227936

Merged
dmlemeshko merged 2 commits intoelastic:9.1from
dmlemeshko:backport/9.1/pr-226411
Jul 15, 2025
Merged

[9.1] [scout] re-org test directory (#226411)#227936
dmlemeshko merged 2 commits intoelastic:9.1from
dmlemeshko:backport/9.1/pr-226411

Conversation

@dmlemeshko
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 9.1:

Questions ?

Please refer to the Backport tool documentation

## 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 dmlemeshko added the backport This PR is a backport of another PR label Jul 15, 2025
@dmlemeshko dmlemeshko enabled auto-merge (squash) July 15, 2025 07:56
@botelastic botelastic bot added Team:obs-ux-infra_services - DEPRECATED DEPRECATED - Use Team:obs-presentation. Team:actionable-obs Formerly "obs-ux-management", responsible for SLO, o11y alerting, significant events, & synthetics. labels Jul 15, 2025
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/obs-ux-management-team (Team:obs-ux-management)

@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services)

@dmlemeshko dmlemeshko requested review from csr and pheyos July 15, 2025 08:02
@elasticmachine
Copy link
Copy Markdown
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

✅ unchanged

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 merged commit b161e45 into elastic:9.1 Jul 15, 2025
11 of 12 checks passed
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>
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 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants