36 lines
1003 B
TypeScript
36 lines
1003 B
TypeScript
import { defineConfig, devices } from '@playwright/test'
|
|
|
|
export default defineConfig({
|
|
testDir: 'tests',
|
|
testIgnore: /openclaw-harness\.spec\.ts/,
|
|
timeout: 60_000,
|
|
expect: {
|
|
timeout: 10_000
|
|
},
|
|
fullyParallel: false,
|
|
workers: 1,
|
|
reporter: [['list']],
|
|
use: {
|
|
baseURL: process.env.E2E_BASE_URL || 'http://127.0.0.1:3005',
|
|
trace: 'retain-on-failure'
|
|
},
|
|
projects: [
|
|
{ name: 'chromium', use: { ...devices['Desktop Chrome'] } }
|
|
],
|
|
webServer: {
|
|
command: 'node .next/standalone/server.js',
|
|
url: 'http://127.0.0.1:3005',
|
|
reuseExistingServer: true,
|
|
timeout: 120_000,
|
|
env: {
|
|
...process.env,
|
|
HOSTNAME: process.env.HOSTNAME || '127.0.0.1',
|
|
PORT: process.env.PORT || '3005',
|
|
MC_DISABLE_RATE_LIMIT: process.env.MC_DISABLE_RATE_LIMIT || '1',
|
|
API_KEY: process.env.API_KEY || 'test-api-key-e2e-12345',
|
|
AUTH_USER: process.env.AUTH_USER || 'testadmin',
|
|
AUTH_PASS: process.env.AUTH_PASS || 'testpass1234!',
|
|
},
|
|
}
|
|
})
|