Edited wording
All checks were successful
Tests et déploiement / validate (push) Successful in 1m42s
Tests et déploiement / deploy (push) Successful in 32s

This commit is contained in:
2026-10-10 12:34:40 +02:00
parent 6183ecb181
commit 277b9c887e
9 changed files with 66 additions and 39 deletions

View File

@@ -57,10 +57,12 @@ test('consultation, correction, recalcul, copie et statistiques à 320 px', asyn
await context.grantPermissions(['clipboard-read','clipboard-write']);
await importFixture(page);
await expect(page.locator('.total')).toContainText('8h30');
await expect(page.locator('.total')).toContainText('Total des heures de présence');
expect(await page.evaluate(() => document.documentElement.scrollWidth <= innerWidth)).toBe(true);
await expect(page.locator('.screen')).not.toContainText('0h30');
await page.getByRole('button',{name:'Copier le récapitulatif'}).click();
const copied = await page.evaluate(() => navigator.clipboard.readText());
expect(copied).toContain('8h30'); expect(copied).not.toContain('Pause');
expect(copied).toContain('Total des heures de présence : 8h30'); expect(copied).not.toContain('Pause');
await page.getByRole('button',{name:'Voir les détails'}).click();
await expect(page.locator('.timeline button')).toHaveCount(3);
await expect(page.locator('.timeline button').nth(1)).toBeDisabled();
@@ -83,6 +85,7 @@ test('consultation, correction, recalcul, copie et statistiques à 320 px', asyn
await expect(page.locator('.total')).toContainText('9h00');
await page.getByRole('button',{name:'Réglages',exact:true}).click();
await page.getByRole('button',{name:'Consulter les statistiques'}).click();
await expect(page.getByText('Heures de présence',{exact:true})).toBeVisible();
await expect(page.getByTestId('stats-worked')).toHaveText('9h00');
expect(await page.evaluate(() => document.documentElement.scrollWidth <= innerWidth)).toBe(true);
// Wider or larger fonts must also fit the backup reminder on CI and mobile.