Enhance auth flows and improve e2e test reliability

- Remove redundant `'use client'` directives in auth pages to streamline code.
- Refine Playwright config: adjust worker limits and add video recording for failed tests.
- Improve session management in e2e tests with isolated state clearing, console log collection, and detailed failure attachments.
- Update API client: better handle auth routes, ensure safe token refresh, and prevent unnecessary redirects.
This commit is contained in:
2025-11-03 00:02:27 +01:00
parent 65f209c679
commit 54a14047be
7 changed files with 174 additions and 19 deletions

View File

@@ -1,5 +1,3 @@
'use client';
import dynamic from 'next/dynamic';
// Code-split LoginForm - heavy with react-hook-form + validation

View File

@@ -3,8 +3,6 @@
* Users enter their email to receive reset instructions
*/
'use client';
import dynamic from 'next/dynamic';
// Code-split PasswordResetRequestForm

View File

@@ -1,5 +1,3 @@
'use client';
import dynamic from 'next/dynamic';
// Code-split RegisterForm (313 lines)