fix(e2e): make the setup onboarding PUT best-effort, not fatal (PMS-645) #437
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/PMS-645-onboard-best-effort"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Make the PMS-641 onboarding
PUT /meine2e/tests/global.setup.tsbest-effort: warn on a non-OK response instead of throwing.Why
A failed setup project makes Playwright SKIP every dependent spec (it does not fail them). So the previous
throwmeant a transient/mefailure would:/onboarding/profilebounce - hiding PMS-641's own signal.Onboarding is only a precondition for the browser specs, so its failure should not gate the API specs and should let the browser specs surface the real bounce.
Change
On a non-OK
PUT /me,console.errora clear warning (status + body) and continue; the successful-onboarding happy path is unchanged.Validation
TS-only change mirroring the surrounding code; no Rust touched (the pre-commit Rust hook passed). Local TS typecheck not available (no lockfile / offline tsc), same as #436. The E2E run exercises it against staging.
Fixes PMS-645. Follow-up to PMS-641 (#436).