mirror of
https://github.com/jkingsman/Remote-Terminal-for-MeshCore.git
synced 2026-05-04 12:33:04 +02:00
Fix e2e tests
This commit is contained in:
@@ -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: [
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user