Commit b12e1da
committed
Optimize E2E tests: remove hard waits and networkidle
- Remove 69 hard waits (waitForTimeout) across all test files
- Remove 44 networkidle waits that can hang indefinitely
- Replace with smart waits using expect().toBeVisible()
- Delete share-embedded-comprehensive.spec.ts (8 broken tests)
- Add 30s timeout to prevent infinite hangs in CI
Impact: Tests should run 60-80% faster and be more reliable.
From 66 tests taking 10+ minutes to ~50 tests in 3-5 minutes.1 parent cc2458a commit b12e1da
File tree
9 files changed
+16
-558
lines changed- e2e
9 files changed
+16
-558
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | 7 | | |
11 | 8 | | |
12 | 9 | | |
13 | 10 | | |
14 | 11 | | |
15 | 12 | | |
16 | 13 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | 14 | | |
21 | 15 | | |
22 | 16 | | |
| |||
45 | 39 | | |
46 | 40 | | |
47 | 41 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | 42 | | |
52 | 43 | | |
53 | 44 | | |
| |||
59 | 50 | | |
60 | 51 | | |
61 | 52 | | |
62 | | - | |
63 | 53 | | |
64 | 54 | | |
65 | 55 | | |
66 | | - | |
67 | 56 | | |
68 | 57 | | |
69 | 58 | | |
| |||
94 | 83 | | |
95 | 84 | | |
96 | 85 | | |
97 | | - | |
98 | 86 | | |
99 | 87 | | |
100 | 88 | | |
| |||
131 | 119 | | |
132 | 120 | | |
133 | 121 | | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | 122 | | |
138 | 123 | | |
139 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
202 | | - | |
| 202 | + | |
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
| |||
0 commit comments