fix: Corriger les tests E2E du dashboard admin après ajout des sections thématiques
Some checks failed
CI / Backend Tests (push) Has been cancelled
CI / Frontend Tests (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled
CI / Naming Conventions (push) Has been cancelled
CI / Build Check (push) Has been cancelled

Les tests attendaient 5 sections mais le dashboard en affiche 8
(5 thématiques + 3 placeholders DashboardSection). Le heading
sr-only "Actions de configuration" manquait pour l'accessibilité.
This commit is contained in:
2026-03-19 12:12:36 +01:00
parent 40b646a5de
commit d34d31976f
2 changed files with 18 additions and 1 deletions

View File

@@ -380,12 +380,15 @@ test.describe('Dashboard', () => {
await switchToDemoRole(page, 'Admin');
const sectionTitles = page.locator('.dashboard-section .section-title');
await expect(sectionTitles).toHaveCount(5);
await expect(sectionTitles).toHaveCount(8);
await expect(sectionTitles.nth(0)).toHaveText('Personnes');
await expect(sectionTitles.nth(1)).toHaveText('Organisation');
await expect(sectionTitles.nth(2)).toHaveText('Année scolaire');
await expect(sectionTitles.nth(3)).toHaveText('Paramètres');
await expect(sectionTitles.nth(4)).toHaveText('Imports');
await expect(sectionTitles.nth(5)).toHaveText('Utilisateurs');
await expect(sectionTitles.nth(6)).toHaveText('Configuration');
await expect(sectionTitles.nth(7)).toHaveText('Activité récente');
});
});