Skip to content

Commit 99e956a

Browse files
B2JK-Industryclaude
andcommitted
fix(test): catch leftover birthYear 2000 defaults in helpers
cbd74ea sed missed two `??` default-fallback patterns: - e2e/golden-paths.spec.ts:31 `birthYear: opts.birthYear ?? 2000` - e2e/production-ready.spec.ts:38 `birthYear: opts.birthYear ?? 2000` These are the per-spec `register(page, opts)` helpers; specs that called them without an explicit birthYear got the 2000 default, which the post-G-01 server clamp rejects with `Too small: expected number to be >=2010`. CI v3 surfaced this on every `gp_...` and `pr_...` registration. Both swapped to 2012 (within the 7-16 GDPR-K target band) — same fix as the other fixture sites. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent cbd74ea commit 99e956a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

e2e/golden-paths.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ async function register(
2828
data: {
2929
username,
3030
password: "correct horse battery 1",
31-
birthYear: opts.birthYear ?? 2000,
31+
birthYear: opts.birthYear ?? 2012,
3232
},
3333
});
3434
expect(r.ok(), `register ${username}: ${r.status()} ${await r.text()}`).toBeTruthy();

e2e/production-ready.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ async function registerFresh(
3535
data: {
3636
username,
3737
password: "correct horse battery 1",
38-
birthYear: opts.birthYear ?? 2000,
38+
birthYear: opts.birthYear ?? 2012,
3939
...(opts.parentEmail ? { parentEmail: opts.parentEmail } : {}),
4040
},
4141
});

0 commit comments

Comments
 (0)