Commit 2798666
test(browser): Fix flaky sessions route-lifecycle test + upgrade axios (#20197)
The `sessions/route-lifecycle` Playwright test flakes because
`getMultipleSentryEnvelopeRequests` starts a 4000ms timeout **before**
`page.goto()`. By the time page load + selector wait + 3 sequential
clicks complete, the timeout can expire with only 3 of 4 expected `init`
sessions captured.
This PR replaces the timeout-based collection approach with sequential
`waitForSession` calls — the same deterministic pattern already used in
`start-session`, `initial-scope`, and `user` session tests:
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Lms24 <8420481+Lms24@users.noreply.github.com>1 parent c2cf58f commit 2798666
1 file changed
Lines changed: 15 additions & 12 deletions
Lines changed: 15 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | | - | |
| 3 | + | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
16 | 13 | | |
17 | | - | |
18 | | - | |
19 | | - | |
| 14 | + | |
20 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
21 | 19 | | |
| 20 | + | |
22 | 21 | | |
23 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
24 | 25 | | |
25 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
26 | 29 | | |
27 | 30 | | |
0 commit comments