test: stabilize rehearser phase fixture

This commit is contained in:
mARTin-B78 2026-09-04 09:00:16 +02:00
parent d03c9841e9
commit 707892251b

View File

@ -33,7 +33,7 @@ test('parses a screenplay and builds the cast', async ({ page }) => {
await page.evaluate(() => window.navRehearserPhase(1));
// Go to the Cast tab area: paste a script and parse
await page.waitForSelector('#reh-script-text', { timeout: 10_000 });
await page.waitForSelector('#reh-script-text', { state: 'attached', timeout: 10_000 });
await page.evaluate(() => window.navRehearserPhase(1));
await expect(page.locator('#reh-script-text')).toBeVisible({ timeout: 10_000 });
await page.fill('#reh-script-text', SCRIPT);