Fix Failing test: Service map embeddable#267540
Conversation
|
Catch flakiness early (recommended): run the flaky test runner against this PR before merging. This PR unskips a previously-failing test suite ( Trigger a run with the Flaky Test Runner UI or post this comment on the PR: Share feedback in the #appex-qa channel. Posted via Macroscope — Flaky Test Runner nudge |
Flaky Test Runner Stats🎉 All tests passed! - kibana-flaky-test-suite-runner#12093[✅] x-pack/solutions/observability/plugins/apm/test/scout/ui/parallel.playwright.config.ts (--arch stateful --domain classic): 50/50 tests passed. |
|
Pinging @elastic/obs-presentation-team (Team:obs-presentation) |
ApprovabilityVerdict: Needs human review Unresolved review comments raise substantive concerns: one questions whether the fix addresses the actual root cause and requests verification on ECH deployment, another identifies a TypeScript type bug where No code changes detected at You can customize Macroscope's approvability policy. Learn more. |
| await this.page.gotoApp('dashboards', { hash: '/create' }); | ||
| await expect(this.addTopNavButton).toBeVisible({ timeout: 20_000 }); | ||
| await expect(this.addTopNavButton).toBeVisible({ timeout: options?.timeout ?? 20_000 }); | ||
| } |
There was a problem hiding this comment.
I believe this is not the main issue with the test:
Could be that in Cloud typing Service name causes warning and affects the next steps?
I believe running flaky-test-runner against Kibana local servers doesn't really help to verify the fix. Please run the test against ECH deployment to confirm the issue is fixed.
There was a problem hiding this comment.
Could be that in Cloud typing Service name causes warning and affects the next steps?
Yes, this would break things.
A quick overview of the changes is:
- Increase timeout from 20 seconds to 45 seconds because, running locally against an ECH environment over 30 times, one of them it got to the 20 second timeout
- Added an explicit closing of a popup that caused some flakiness
- [Newest change] Added an option to fill the search input instead of pressing each key (reduced the flakiness A LOT)
Not directly related to the test, more code related, but added the option for other parts of the same files to have a custom timeout or to use fill instead of type for future tests.
Note: Added photo of ECH test passing (did a commit afterwards because the date input is not the same locally vs ECH, everything else is the same and should pass)
|
/oblt-deploy |
Flaky Test Runner Stats🟠 Some tests failed. - kibana-flaky-test-suite-runner#12103[❌] x-pack/solutions/observability/plugins/apm/test/scout/ui/parallel.playwright.config.ts (--arch stateful --domain classic): 0/50 tests passed. |
Flaky Test Runner Stats🎉 All tests passed! - kibana-flaky-test-suite-runner#12105[✅] x-pack/solutions/observability/plugins/apm/test/scout/ui/parallel.playwright.config.ts (--arch stateful --domain classic): 50/50 tests passed. |
…map-embeddable-test
jennypavlova
left a comment
There was a problem hiding this comment.
LGTM, thanks for fixing the test!
💚 Build Succeeded
Metrics [docs]Public APIs missing comments
Unknown metric groupsAPI count
History
cc @sbelastic |
Closes elastic#265639 ## Summary - Fix Service map embeddable - Changed things in apex QA files to give us the option to use custom timeouts, a number of the crashes was because the current hardcoded timeouts aren't enough to pass in the CI (examples: [Comment 1](elastic#265639 (comment)), [Comment 2](elastic#265639 (comment)), [Comment 3](elastic#265639 (comment))) ### Ran against ECH environment <img width="1918" height="1134" alt="image" src="https://github.com/user-attachments/assets/de731bbf-2825-420f-bd29-6bb0baae5887" /> ### How to run #### Server `node scripts/scout.js start-server --arch stateful --domain classic` #### Client `npx playwright test --project local --ui --config x-pack/solutions/observability/plugins/apm/test/scout/ui/parallel.playwright.config.ts` #### On ECH `npx playwright test --project=ech --ui --config x-pack/solutions/observability/plugins/apm/test/scout/ui/parallel.playwright.config.ts` ### Checklist - [x] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed [(last successful run)](elastic#267540 (comment))
Closes #265639
Summary
Ran against ECH environment
How to run
Server
node scripts/scout.js start-server --arch stateful --domain classicClient
npx playwright test --project local --ui --config x-pack/solutions/observability/plugins/apm/test/scout/ui/parallel.playwright.config.tsOn ECH
npx playwright test --project=ech --ui --config x-pack/solutions/observability/plugins/apm/test/scout/ui/parallel.playwright.config.tsChecklist