Commit 93b6f4f
committed
fix(e2e): match typeless org cards in Cypress selectors
The onboarding "unified org" work made organizations typeless — the org
adapter now returns an undefined `type` for them, so the card renders
`data-e2e="organization-card"` instead of `-personal`/`-standard`. The
shared `getPersonalOrgId` command (the smoke-suite cascade root) plus a
few specs still keyed off the legacy `organization-card-personal` hook
and timed out waiting for an element that no longer renders, failing
E2E Smoke across PRs.
Completes the migration the team already started in
regression/organisations.cy.ts and support/e2e.ts:737:
- getPersonalOrgId / smoke render test: identify the personal org by its
stable `personal-org-…` resource name (via cy.contains on the id
badge), independent of the removed type attribute.
- createStandardOrg / auth regression: wait for any card variant using
the prefix selector `[data-e2e^="organization-card"]`.
Does not touch app code or dependency updates.1 parent 9c801cc commit 93b6f4f
3 files changed
Lines changed: 21 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
54 | 53 | | |
55 | 54 | | |
56 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | | - | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
244 | 247 | | |
245 | 248 | | |
246 | | - | |
247 | | - | |
248 | | - | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
249 | 252 | | |
250 | | - | |
251 | 253 | | |
252 | 254 | | |
253 | 255 | | |
254 | | - | |
255 | | - | |
| 256 | + | |
| 257 | + | |
256 | 258 | | |
257 | 259 | | |
258 | 260 | | |
| |||
326 | 328 | | |
327 | 329 | | |
328 | 330 | | |
329 | | - | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
330 | 334 | | |
331 | 335 | | |
332 | 336 | | |
| |||
0 commit comments