Files
LangBot/web/playwright.runner-runtime.config.ts
T
RockChinQandmultica-agent d9e4e7d9df fix(pipeline): decouple Runner from extension permissions (LANG-54) (#2723)
* fix(pipeline): decouple runner from extension allowlist

Co-authored-by: multica-agent <[email protected]>

* fix(pipeline): complete runner diagnostics and real runtime coverage

Co-authored-by: multica-agent <[email protected]>

---------

Co-authored-by: multica-agent <[email protected]>
2026-10-19 23:07:11 +08:00

31 lines
924 B
TypeScript

import { defineConfig, devices } from '@playwright/test';
const port = process.env.LANGBOT_RUNNER_WEB_PORT;
if (!port || !process.env.LANGBOT_RUNNER_API_URL) {
throw new Error(
'Run through tests/e2e/test_runner_plugin_runtime.py with its isolated backend and SDK runtime',
);
}
export default defineConfig({
testDir: './tests/e2e',
testMatch: 'runner-real-runtime.spec.ts',
workers: 1,
retries: 0,
timeout: 120_000,
reporter: 'list',
outputDir: process.env.LANGBOT_RUNNER_BROWSER_OUTPUT,
use: {
baseURL: `http://127.0.0.1:${port}`,
trace: 'retain-on-failure',
...devices['Desktop Chrome'],
},
webServer: {
command: `node node_modules/vite/bin/vite.js preview --host 127.0.0.1 --port ${port} --strictPort`,
url: `http://127.0.0.1:${port}`,
reuseExistingServer: false,
timeout: 60_000,
env: { VITE_API_PROXY_TARGET: process.env.LANGBOT_RUNNER_API_URL },
},
});