diff --git a/tests/e2e/playwright.config.ts b/tests/e2e/playwright.config.ts index 478c4ec..58d0840 100644 --- a/tests/e2e/playwright.config.ts +++ b/tests/e2e/playwright.config.ts @@ -25,6 +25,16 @@ export default defineConfig({ baseURL: 'http://localhost:8001', trace: 'on-first-retry', screenshot: 'only-on-failure', + // Dismiss the security warning modal that blocks interaction on fresh browser contexts + storageState: { + cookies: [], + origins: [ + { + origin: 'http://localhost:8001', + localStorage: [{ name: 'meshcore_security_warning_acknowledged', value: 'true' }], + }, + ], + }, }, projects: [ diff --git a/tests/e2e/specs/bot.spec.ts b/tests/e2e/specs/bot.spec.ts index 29d32f8..57bb469 100644 --- a/tests/e2e/specs/bot.spec.ts +++ b/tests/e2e/specs/bot.spec.ts @@ -40,7 +40,7 @@ test.describe('Bot functionality', () => { await page.locator('#fanout-edit-name').fill('E2E Test Bot'); - const codeEditor = page.getByLabel('Bot code editor'); + const codeEditor = page.locator('[aria-label="Bot code editor"] [contenteditable]'); await codeEditor.click(); await codeEditor.press(process.platform === 'darwin' ? 'Meta+A' : 'Control+A'); await codeEditor.fill(BOT_CODE);