Commit 48b978c
authored
[CI] Fix flaky API docs E2E test (#2963)
## Summary
The API reference E2E test was flaky because it used `waitUntil:
'networkidle'`, which waits for no network activity for 500ms. This
condition often never triggers due to analytics scripts, service
workers, or background requests - even when the page is fully rendered
and functional.
This PR switches to `domcontentloaded` for navigation and relies on the
element visibility check (`.apiPage`) to determine when the page is
ready. This is more reliable because it tests what actually matters: the
content being visible to users.1 parent 07d1b36 commit 48b978c
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
0 commit comments