Commit 798ad69
authored
fix flaky test: alert details error page timeout (elastic#260302)
## Summary
Fixes the flaky test reported in elastic#250046.
**Root cause:** \`toBeVisible()\` would start checking while the
component was in its loading state (spinner), missing the brief initial
render of the error panel and timing out before the async API call for
the non-existent alert completed.
**Fix:** Wrap navigate+assert in \`.toPass({ timeout: 30_000, intervals:
[2_000] })\`. I also fixed a data-test-subj and a `goto` method that
changed during Rules page unification
**Test type:** Scout (Playwright)
**Test file:**
\`x-pack/solutions/observability/plugins/observability/test/scout/ui/parallel_tests/alert_details_page.spec.ts\`
**Config:**
\`x-pack/solutions/observability/plugins/observability/test/scout/ui/parallel.playwright.config.ts\`
## Validation
- [ ] CI flaky test runner (50 + 150 runs)
## Checklist
- [x] Flaky Test Runner was used on any tests changed1 parent 0d79a1e commit 798ad69
3 files changed
Lines changed: 8 additions & 6 deletions
File tree
- x-pack/solutions/observability/plugins/observability/test/scout/ui
- fixtures/page_objects
- parallel_tests
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
| 13 | + | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
| |||
58 | 57 | | |
59 | 58 | | |
60 | 59 | | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
| |||
0 commit comments