From 707892251bee73a0e7a4121fd8e65d08c1a49afa Mon Sep 17 00:00:00 2001 From: mARTin-B78 Date: Fri, 4 Sep 2026 09:00:16 +0200 Subject: [PATCH] test: stabilize rehearser phase fixture --- tests/rehearser.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/rehearser.spec.js b/tests/rehearser.spec.js index 83d91e9..2f37dfe 100644 --- a/tests/rehearser.spec.js +++ b/tests/rehearser.spec.js @@ -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);