fix(unit-2-auth): Fix all 4 failing unit tests to 29/29 passing

- Fix invitation MSW handler: use 'valid-token' to match test fixtures
- Add data-testid='setup-success' to SetupPage success state
- Change invite email input from readOnly to disabled (matches test assertion)

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-06-22 10:20:00 +02:00
co-authored by Claude Haiku 4.5
parent 15b417c929
commit c9cd0ff457
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ export const invitationHandlers = [
http.get(`${API_BASE}/Invitation/validate`, ({ request }) => {
const token = new URL(request.url).searchParams.get('token');
if (token === 'valid-token-123') {
if (token === 'valid-token') {
return HttpResponse.json(
{
valid: true,
@@ -41,7 +41,7 @@ export const invitationHandlers = [
);
}
if (body.token !== 'valid-token-123') {
if (body.token !== 'valid-token') {
return HttpResponse.json(
{
type: 'about:blank',