[Discover] [Metrics] Add tier 2 journeys for Metrics in Discover E2E#255036
[Discover] [Metrics] Add tier 2 journeys for Metrics in Discover E2E#255036justinkambic merged 64 commits intoelastic:mainfrom
Conversation
…eakdown flow. Add metrics-experience Scout coverage for ES|QL recommended-query kickstart and field-list breakdown-by-dimension journeys. Extend Scout page objects/constants with stable helpers and selectors so the new tests run reliably across the metrics parallel suite.
|
Thanks Justin!! Just FYI: I've marked the task as blocked by this PR |
…ibility in metrics experience tests
- Moved recommended ESQL query handling and sidebar breakdown field methods from DiscoverApp to DiscoverActions for better separation of concerns. - Updated tests to utilize the new DiscoverActions class for running recommended queries and adding breakdown fields. - Ensured that the DiscoverActions class is properly integrated into the existing test fixtures and page objects.
- Removed fallback query handling from the runRecommendedEsqlQuery method for simplification. - Updated related tests to reflect the changes in the query execution logic. - Cleaned up constants by removing unused SEARCH_ALL_FIELDS_FALLBACK label. This refactor enhances the clarity and maintainability of the code.
|
Pinging @elastic/obs-exploration-team (Team:obs-exploration) |
|
/flaky scoutConfig:src/platform/plugins/shared/discover/test/scout/ui/parallel.playwright.config.ts:30 |
Flaky Test Runner✅ Build triggered - kibana-flaky-test-suite-runner#11041
|
|
I pushed a change that I thought was minor but seems to have broken the test. Working on a fix, will push again soon. |
...s/shared/discover/test/scout/ui/fixtures/metrics_experience/page_objects/discover_actions.ts
Outdated
Show resolved
Hide resolved
Flaky Test Runner Stats🟠 Some tests failed. - kibana-flaky-test-suite-runner#11041[❌] src/platform/plugins/shared/discover/test/scout/ui/parallel.playwright.config.ts: 0/30 tests passed. |
- Introduced RECOMMENDED_QUERY_TAGS constant to enhance query handling. - Updated DiscoverActions to include a timeout for query visibility checks. - Modified query_kickstart.spec to utilize the new RECOMMENDED_QUERY_TAGS for improved test accuracy.
300941d to
9d54490
Compare
|
/flaky scoutConfig:src/platform/plugins/shared/discover/test/scout/ui/parallel.playwright.config.ts:30 |
Flaky Test Runner✅ Build triggered - kibana-flaky-test-suite-runner#11045
|
Flaky Test Runner Stats🟠 Some tests failed. - kibana-flaky-test-suite-runner#11045[❌] src/platform/plugins/shared/discover/test/scout/ui/parallel.playwright.config.ts: 0/30 tests passed. |
- Updated the test for Search
Flaky Test Runner✅ Build triggered - kibana-flaky-test-suite-runner#11138
|
Flaky Test Runner Stats🟠 Some tests failed. - kibana-flaky-test-suite-runner#11138[❌] src/platform/plugins/shared/discover/test/scout/ui/parallel.playwright.config.ts: 23/30 tests passed. |
|
This PR is failing the flaky test runner. It looks like the majority of the failures took place due to
We did not modify this file as part of this set of changes. Should I try to modify the file in here to prevent the flakiness? |
|
/flaky scoutConfig:src/platform/plugins/shared/discover/test/scout/ui/parallel.playwright.config.ts:30 |
Flaky Test Runner✅ Build triggered - kibana-flaky-test-suite-runner#11140
|
Flaky Test Runner Stats🟠 Some tests failed. - kibana-flaky-test-suite-runner#11140[❌] src/platform/plugins/shared/discover/test/scout/ui/parallel.playwright.config.ts: 26/30 tests passed. |
|
/flaky scoutConfig:src/platform/plugins/shared/discover/test/scout/ui/parallel.playwright.config.ts:30 |
Flaky Test Runner✅ Build triggered - kibana-flaky-test-suite-runner#11145
|
Not related with this PR, fixed here |
Flaky Test Runner Stats🎉 All tests passed! - kibana-flaky-test-suite-runner#11145[✅] src/platform/plugins/shared/discover/test/scout/ui/parallel.playwright.config.ts: 30/30 tests passed. |
src/platform/packages/shared/kbn-scout/src/playwright/page_objects/discover_app.ts
Outdated
Show resolved
Hide resolved
src/platform/packages/shared/kbn-scout/src/playwright/page_objects/discover_app.ts
Outdated
Show resolved
Hide resolved
…bana into 5219/e2e-tier-2-coverage
…queries - Removed unnecessary visibility check for the panel title button. - Simplified the wait for the panel title button to use a direct locator call. - Improved code clarity and efficiency in handling recommended queries.
- Removed unnecessary visibility check for the breakdown button. - Streamlined the process of clicking on fields and handling the field popover. - Improved code clarity and efficiency in the Discover app's interaction logic.
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]
History
|
|
/flaky scoutConfig:src/platform/plugins/shared/discover/test/scout/ui/parallel.playwright.config.ts:30 |
Flaky Test Runner✅ Build triggered - kibana-flaky-test-suite-runner#11161
|
Flaky Test Runner Stats🎉 All tests passed! - kibana-flaky-test-suite-runner#11161[✅] src/platform/plugins/shared/discover/test/scout/ui/parallel.playwright.config.ts: 30/30 tests passed. |
…d_agent_navigation2 * commit '9289d6b5502db245e645e190b0246554396c6c20': (34 commits) [api-docs] 2026-03-19 Daily api_docs build (elastic#258471) [Shared UX][DateRangePicker] Missing parts (elastic#258229) [Dashboard] Keep pinned_panels separate in read response (elastic#258444) Move inheritance: true to top level in .coderabbit.yml (elastic#258461) [DOCS] 9.3.2 Kibana release notes (elastic#257332) adds routing accept metric attribute to the cps metric (elastic#258168) [ML] AI/Inference Connector creation: use 'location' field to correctly set provider config (elastic#250838) [Lens] Add e2e test for legend list layout (elastic#258160) [SigEvents] Convert feature duplication evaluators to createPrompt pattern (elastic#256534) Add actionable-obs author to .coderabbit.yml (elastic#257922) [DOCS] 9.2.7 Kibana release notes (elastic#257331) Grant Serverless editor/viewer access to ES v2 indices (elastic#258384) [SigEvents][Evals] Rename terminology for KI features and KI queries (elastic#258361) [EDR Workflows][Osquery] Add shared table toolbar components and redesign saved queries list (elastic#258394) [Automatic Import V2] Upload samples using an existing index (elastic#258074) Add GET /inference_features route to expose feature registry (elastic#258044) fix additional fields not included (elastic#257625) [Discover] [Metrics] Add tier 2 journeys for Metrics in Discover E2E (elastic#255036) [Lens as code] Support correct X-Axis types in ES|QL visualizations (elastic#258159) Update APM (main) (elastic#254880) ...
…lastic#255036) ## Summary Related to elastic/observability-dev#5219. Implements Tier 2 E2E coverage for Discover Metrics journeys, aligned with the existing metrics_experience test architecture and config pattern. Adds two new parallel Scout specs in metrics_experience: - `query_kickstart.spec.ts`: validates recommended-query kickstart behavior from the ES|QL help flow, with environment-aware handling when Search all metrics is unavailable and Search all fields is shown. - `breakdown_by_dimension.spec.ts`: validates that selecting “Breakdown by dimension” from the field list is reflected in the metrics toolbar and preserves metrics grid rendering. This patch introduces coverage for the two unblocked journeys, but does not yet implement the "switch between tabs" third journey, which is blocked by elastic#251637. ## Test Plan Validated via Scout metrics parallel config: ``` node scripts/scout.js run-tests --arch stateful --domain classic --config src/platform/plugins/shared/discover/test/scout/ui/metrics_experience_parallel.playwright.config.ts ``` Result on latest run: ``` All tests pass: 36 passed, 8 skipped, 0 failed. Exit code 0. ``` --------- Co-authored-by: Lucas Francisco López <lucaslopezf@gmail.com>
…lastic#255036) ## Summary Related to elastic/observability-dev#5219. Implements Tier 2 E2E coverage for Discover Metrics journeys, aligned with the existing metrics_experience test architecture and config pattern. Adds two new parallel Scout specs in metrics_experience: - `query_kickstart.spec.ts`: validates recommended-query kickstart behavior from the ES|QL help flow, with environment-aware handling when Search all metrics is unavailable and Search all fields is shown. - `breakdown_by_dimension.spec.ts`: validates that selecting “Breakdown by dimension” from the field list is reflected in the metrics toolbar and preserves metrics grid rendering. This patch introduces coverage for the two unblocked journeys, but does not yet implement the "switch between tabs" third journey, which is blocked by elastic#251637. ## Test Plan Validated via Scout metrics parallel config: ``` node scripts/scout.js run-tests --arch stateful --domain classic --config src/platform/plugins/shared/discover/test/scout/ui/metrics_experience_parallel.playwright.config.ts ``` Result on latest run: ``` All tests pass: 36 passed, 8 skipped, 0 failed. Exit code 0. ``` --------- Co-authored-by: Lucas Francisco López <lucaslopezf@gmail.com>
Summary
Related to https://github.com/elastic/observability-dev/issues/5219.
Implements Tier 2 E2E coverage for Discover Metrics journeys, aligned with the existing metrics_experience test architecture and config pattern.
Adds two new parallel Scout specs in metrics_experience:
query_kickstart.spec.ts: validates recommended-query kickstart behavior from the ES|QL help flow, with environment-aware handling when Search all metrics is unavailable and Search all fields is shown.breakdown_by_dimension.spec.ts: validates that selecting “Breakdown by dimension” from the field list is reflected in the metrics toolbar and preserves metrics grid rendering.This patch introduces coverage for the two unblocked journeys, but does not yet implement the "switch between tabs" third journey, which is blocked by #251637.
Test Plan
Validated via Scout metrics parallel config:
Result on latest run: