Commit 6d25941
committed
Revert: M2M scope poll and @clerk/testing timeout bumps
These three changes — the M2M `expect.poll`, the `userButton.waitForMounted`
30s timeout, and the `resolveResetPasswordTask` 30s waitFor — didn't move
the failing tests, because each one bumped into Playwright's 30s default
test timeout before the new budget could matter.
The underlying failures are real product/backend issues (cl-userButtonTrigger
never paints; reset-password user lands on the wrong task screen; new M2M
tokens stay 401 after a fresh scope grant) that need a code fix outside
this PR. Reverting the test-side bandages keeps this PR focused on what
actually helped.
Kept from earlier commits:
- Strong random fake-user passwords (`fakerPassword()`)
- Defensive optional-chained afterAll in `components.test.ts` and the
three `registerXxxAuthTests` helpers in `machineAuthHelpers.ts`.
Restored to `main`:
- `userButton.waitForMounted` (no explicit timeout)
- `resolveResetPasswordTask` (no explicit waitFor)
- M2M `authorizes after dynamically granting scope` (no `expect.poll`)
- empty changeset1 parent 7743e98 commit 6d25941
4 files changed
Lines changed: 14 additions & 41 deletions
File tree
- .changeset
- integration/testUtils
- packages/testing/src/playwright/unstable/page-objects
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
352 | | - | |
353 | | - | |
354 | | - | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
355 | 356 | | |
356 | 357 | | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
382 | 365 | | |
383 | | - | |
384 | | - | |
385 | | - | |
| 366 | + | |
386 | 367 | | |
387 | 368 | | |
388 | 369 | | |
| |||
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
| 30 | + | |
33 | 31 | | |
34 | 32 | | |
35 | 33 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
0 commit comments