Commit bfa15aa
User
Fix flaky
`test_offline_component` tears down the offline webserver while the shared
Playwright page is still on the /offline/ page. That page's client
(`createReconnectingWebSocket`) keeps retrying the now-dead port on a
backoff timer, so a reconnect attempt that lands inside the next test's
navigation window leaks a second WebSocket URL and flakes
`test_one_websocket_per_page` (observed intermittently on CI as
"Expected 1 unique WebSocket URL, got 2 ... /offline/").
Navigating to about:blank at the end of `test_offline_component` destroys
the document and cancels its pending reconnect timers, so later tests start
from a clean state.test_one_websocket_per_page after the offline test1 parent 43527ef commit bfa15aa
1 file changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
711 | 711 | | |
712 | 712 | | |
713 | 713 | | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
714 | 726 | | |
715 | 727 | | |
716 | 728 | | |
| |||
0 commit comments