feat: Dashboard placeholder avec preview Score Sérénité
Permet aux parents de visualiser une démo du Score Sérénité dès leur première connexion, avant même que les données réelles soient disponibles. Les autres rôles (enseignant, élève, admin) ont également leur dashboard adapté avec des sections placeholder. La landing page redirige automatiquement vers /dashboard si l'utilisateur est déjà authentifié, offrant un accès direct au tableau de bord.
This commit is contained in:
@@ -59,12 +59,12 @@ test.describe('Login Flow', () => {
|
||||
|
||||
// Submit and wait for navigation to dashboard
|
||||
await Promise.all([
|
||||
page.waitForURL('/', { timeout: 10000 }),
|
||||
page.waitForURL('/dashboard', { timeout: 10000 }),
|
||||
submitButton.click()
|
||||
]);
|
||||
|
||||
// We should be on the dashboard (root)
|
||||
await expect(page).toHaveURL('/');
|
||||
// We should be on the dashboard
|
||||
await expect(page).toHaveURL('/dashboard');
|
||||
});
|
||||
});
|
||||
|
||||
@@ -350,7 +350,7 @@ test.describe('Login Flow', () => {
|
||||
await submitButton.click();
|
||||
|
||||
// Should redirect to dashboard (successful login)
|
||||
await expect(page).toHaveURL(/\/$/, { timeout: 10000 });
|
||||
await expect(page).toHaveURL(/\/dashboard/, { timeout: 10000 });
|
||||
});
|
||||
|
||||
test('user cannot login on different tenant', async ({ page }) => {
|
||||
@@ -383,7 +383,7 @@ test.describe('Login Flow', () => {
|
||||
await submitButton.click();
|
||||
|
||||
// Should redirect to dashboard (successful login)
|
||||
await expect(page).toHaveURL(/\/$/, { timeout: 10000 });
|
||||
await expect(page).toHaveURL(/\/dashboard/, { timeout: 10000 });
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user