forked from cardosofelipe/fast-next-template
Refactor e2e tests for clarity and skip outdated cases
- Improved `auth-guard.spec.ts` test formatting for readability by adjusting destructuring syntax. - Updated `settings-sessions.spec.ts` to note feature completion and skipped tests pending auth storage debugging. - Removed outdated and redundant test cases from `homepage.spec.ts` to streamline coverage. - Enabled and updated assertion in `settings-password.spec.ts` to check updated heading for password change form.
This commit is contained in:
@@ -119,7 +119,10 @@ test.describe('AuthGuard - Route Protection', () => {
|
||||
expect(tokenCleared).toBe(true);
|
||||
});
|
||||
|
||||
test('should not allow access to auth pages when already logged in', async ({ page, context }) => {
|
||||
test('should not allow access to auth pages when already logged in', async ({
|
||||
page,
|
||||
context,
|
||||
}) => {
|
||||
// Set up authenticated state before navigation
|
||||
await context.addInitScript(() => {
|
||||
const mockToken = {
|
||||
|
||||
Reference in New Issue
Block a user