9 lines
402 B
JavaScript
9 lines
402 B
JavaScript
// tests/e2e/12a-reset-password-redirect.spec.mjs
|
|
import { test, expect } from '@playwright/test';
|
|
|
|
test('@p0 Reset Password — no-token path redirects to /signin', async ({ page }) => {
|
|
await page.context().clearCookies();
|
|
await page.goto('/reset-password', { waitUntil: 'networkidle' });
|
|
await expect(page).toHaveURL(/\/signin(\?|$)/, { timeout: 5000 }); // matches your wildcard redirect
|
|
});
|