Skip to content

Conversation

@kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 9.1:

Questions ?

Please refer to the Backport tool documentation

…tic#234192)

## Summary

Extending Scout CLI with capability to run individual spec files / test
directories.

How to test:

- explicit test files:
```
node scripts/scout run-tests --serverless=es \
--testFiles=\
x-pack/platform/plugins/private/discover_enhanced/test/scout/ui/parallel_tests/value_suggestions_non_time_based.spec.ts,\
x-pack/platform/plugins/private/discover_enhanced/test/scout/ui/parallel_tests/value_suggestions.spec.ts
```

- tests sub-directory:
```
node scripts/scout run-tests --serverless=es \
--testFiles=\
x-pack/solutions/observability/plugins/apm/test/scout/ui/parallel_tests/service_inventory
```

Note:
- either `--config` or `--testFiles` flag is required, but no both at
the same time
- Playwright config is defined based on tests root dir (`/tests` or
`parallel_tests`), so script validates that all test files are form the
same root dir.

(cherry picked from commit 2545c4f)
@kibanamachine kibanamachine added the backport This PR is a backport of another PR label Sep 9, 2025
@kibanamachine kibanamachine enabled auto-merge (squash) September 9, 2025 14:07
@kibanamachine kibanamachine added the backport This PR is a backport of another PR label Sep 9, 2025
@kibanamachine kibanamachine merged commit 9903918 into elastic:9.1 Sep 9, 2025
18 checks passed
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

cc @dmlemeshko

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