feat: Permettre à l'élève de consulter ses notes et moyennes
L'élève avait accès à ses compétences mais pas à ses notes numériques. Cette fonctionnalité lui donne une vue complète de sa progression scolaire avec moyennes par matière, détail par évaluation, statistiques de classe, et un mode "découverte" pour révéler ses notes à son rythme (FR14, FR15). Les notes ne sont visibles qu'après publication par l'enseignant, ce qui garantit que l'élève les découvre avant ses parents (délai 24h story 6.7).
This commit is contained in:
@@ -165,10 +165,14 @@ test.describe('Appreciations (Story 6.4)', () => {
|
||||
await page.locator('.btn-appreciation').first().click();
|
||||
await expect(page.locator('.appreciation-textarea')).toBeVisible({ timeout: 5000 });
|
||||
|
||||
// Type appreciation text
|
||||
await page.locator('.appreciation-textarea').fill('Très bon travail ce trimestre');
|
||||
// Type appreciation text (pressSequentially to reliably trigger Svelte bind + oninput)
|
||||
const textarea = page.locator('.appreciation-textarea');
|
||||
await textarea.click();
|
||||
await expect(textarea).toBeFocused();
|
||||
await textarea.pressSequentially('Bon travail', { delay: 50 });
|
||||
await expect(textarea).not.toHaveValue('');
|
||||
|
||||
// Wait for auto-save by checking the UI status indicator
|
||||
// Wait for auto-save by checking the UI status indicator (1s debounce + network)
|
||||
await expect(page.getByText('Sauvegardé')).toBeVisible({ timeout: 15000 });
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user