Commit c83fd87
test: Fix Service Dashboards Scout wait (strict progressbar locator) (elastic#267796)
## Summary
- Replaced `getByRole('progressbar')` in
`DashboardsTab.waitForDashboardsToLoad` with a wait for
`apmMainTemplateServiceAgentLoader` to be hidden. The generic
progressbar role matched multiple concurrent EUI loaders (chrome,
environment filter, service title, etc.) and caused Playwright **strict
mode** failures.
- Extended `waitForTabLoad` on the dashboards tab to wait for the same
main template loader after the unified search bar is visible, matching
`MetricsTab` / `ServiceDetailsPage.goToPage` and stabilizing navigation
before the unlink test.
## Testing
- Ran `service_dashboards.spec.ts` locally — passed. Expect serverless
observability Scout (`local-serverless-observability_complete`) to
validate after CI merges.
Cc flaky Scout/serverless monitoring: worth confirming stability once
merged.
Closes elastic#256350
Made with [Cursor](https://cursor.com)
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent fd52301 commit c83fd87
1 file changed
Lines changed: 6 additions & 1 deletion
File tree
- x-pack/solutions/observability/plugins/apm/test/scout/ui/fixtures/page_objects/service_details
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
36 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
37 | 42 | | |
38 | 43 | | |
39 | 44 | | |
| |||
0 commit comments