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);