Commit 90c99bf
* test(teams): backport addTeamHierarchy hardening to 1.13
1.13 never received the addTeamHierarchy waits that main and 2.0 carry, so
the helper returns while the teams table is still refetching: it opens the
modal on a plain click a toast can swallow, resolves on the first
`/api/v1/teams` response regardless of method or status, and never waits
for the modal to close or the row to render.
Backports the team.ts changes from #25894, #30334 and #31734.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* test(teams): stop the teams landing from eating the test budget
TeamsDragAndDrop's beforeEach spent the whole 60s test timeout before any
test body ran. settingClick already ends in waitForAllLoadersToDisappear
(30s), and the hook then called it a second time. The Teams table's antd
spinner is the shared `data-testid="loader"`, and it stays up until both
the child-teams fetch and the per-team asset-count aggregation settle — on
a long-lived deployment that is tens of seconds, so the two waits together
consumed the budget and the hook timed out on the second one.
Give the suite test.slow(true) so the landing has headroom, and hard-delete
the four teams the suite creates. Without that cleanup every nightly run
left four more teams under Organization, growing the aggregation the
landing waits on and making the next run slower.
Fold the duplicated navigation into visitTeamsPage and reuse it from
TeamsHierarchy, which had the same hook with looser glob waits.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* test(teams): surface a failed cleanup delete
hardDeleteTeamByName issued the DELETE and ignored the result, so a delete
rejected on permissions or failing with a 500 left the team behind with no
signal in the run — quietly reintroducing the accumulation this cleanup
exists to prevent. Assert the response instead, with the status and body in
the message.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* test(teams): only tolerate a 404 on the cleanup lookup
The lookup guard keyed off `ok()`, which is false for an auth error or a 500
just as it is for a 404. A broken lookup therefore took the same path as a
team that was already gone: return without deleting, and report success.
Tolerate 404 alone — the spec may have deleted the team itself, and a
recursive delete of its parent takes its children — and assert every other
lookup failure.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* test(teams): attempt every cleanup delete before asserting
The assertion sat inside hardDeleteTeamByName, so the first team that failed
to delete threw out of the caller's loop and the remaining names were never
attempted — leaving those teams on the deployment, which is the accumulation
the cleanup exists to prevent.
Move the assertion up into hardDeleteTeamsByName: the per-team helper now
reports a failure instead of throwing (network errors included), every name
is attempted, and one assertion at the end names every team that survived
along with the status and body that explain why.
Wrap the call in try/finally in the spec so the API context is disposed even
when cleanup fails.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent 965c031 commit 90c99bf
3 files changed
Lines changed: 211 additions & 45 deletions
File tree
- openmetadata-ui/src/main/resources/ui/playwright
- e2e/Features
- utils
Lines changed: 25 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | 15 | | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| |||
89 | 91 | | |
90 | 92 | | |
91 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
92 | 99 | | |
93 | 100 | | |
| 101 | + | |
| 102 | + | |
94 | 103 | | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
| 104 | + | |
| 105 | + | |
105 | 106 | | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
110 | 117 | | |
111 | 118 | | |
112 | 119 | | |
113 | | - | |
114 | 120 | | |
115 | 121 | | |
116 | 122 | | |
| |||
158 | 164 | | |
159 | 165 | | |
160 | 166 | | |
161 | | - | |
162 | 167 | | |
163 | 168 | | |
164 | 169 | | |
| |||
182 | 187 | | |
183 | 188 | | |
184 | 189 | | |
185 | | - | |
186 | 190 | | |
187 | 191 | | |
188 | 192 | | |
| |||
Lines changed: 2 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
| 50 | + | |
60 | 51 | | |
61 | 52 | | |
62 | 53 | | |
| |||
111 | 102 | | |
112 | 103 | | |
113 | 104 | | |
114 | | - | |
115 | | - | |
116 | 105 | | |
117 | 106 | | |
118 | 107 | | |
| |||
Lines changed: 184 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
36 | 192 | | |
37 | 193 | | |
38 | 194 | | |
| |||
252 | 408 | | |
253 | 409 | | |
254 | 410 | | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
263 | 415 | | |
264 | | - | |
| 416 | + | |
265 | 417 | | |
266 | 418 | | |
267 | 419 | | |
| |||
285 | 437 | | |
286 | 438 | | |
287 | 439 | | |
288 | | - | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
289 | 452 | | |
290 | 453 | | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
291 | 464 | | |
292 | 465 | | |
293 | 466 | | |
| |||
592 | 765 | | |
593 | 766 | | |
594 | 767 | | |
595 | | - | |
| 768 | + | |
596 | 769 | | |
597 | 770 | | |
598 | 771 | | |
| |||
0 commit comments