mirror of
https://github.com/tester-army/e2e.git
synced 2026-11-25 02:24:26 +08:00
25 lines
622 B
TypeScript
25 lines
622 B
TypeScript
import type { E2EConfig } from 'e2e';
|
|
import { createAgent } from 'e2e/agent';
|
|
import { playwright } from '@e2edev/playwright';
|
|
import { gateway } from 'ai';
|
|
|
|
export default {
|
|
agents: {
|
|
default: createAgent({
|
|
model: gateway('openai/gpt-5.6-luna'),
|
|
system: 'You are a thorough QA agent. Verify every outcome.',
|
|
}),
|
|
},
|
|
targets: [{
|
|
engine: playwright({
|
|
url: process.env.APP_URL ?? 'http://localhost:3000',
|
|
command: {
|
|
executable: 'npm',
|
|
args: ['run', 'dev'],
|
|
reuseExisting: true,
|
|
log: '.e2e/logs/app.log',
|
|
},
|
|
}),
|
|
}],
|
|
} satisfies E2EConfig;
|