mirror of
https://github.com/deunix-educ/PyQuest.git
synced 2026-11-25 08:19:44 +01:00
Fix false voice failure message: pause event fires before ended
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -198,6 +198,8 @@ test('narration : fichier Piper lu jusqu\'au bout (politique autoplay par défau
|
||||
await page.locator('.settings').getByRole('button', { name: 'Tester la voix' }).click();
|
||||
await page.waitForFunction((count) => window.__audio.ended > count, before, { timeout: 30000 });
|
||||
|
||||
// Une lecture menée à son terme ne doit jamais afficher le message d'échec.
|
||||
assert.doesNotMatch(await page.textContent('.toast-region'), /Impossible de lire/);
|
||||
assert.ok(served.length >= 2 && served.every((entry) => entry.startsWith('200 audio/mpeg')), `mp3 servis : ${served}`);
|
||||
assert.equal(await page.evaluate(() => window.__audio.errors), 0);
|
||||
assert.deepEqual(errors, []);
|
||||
|
||||
Reference in New Issue
Block a user