qwen-code/integration-tests/terminal-capture/scenarios/all.ts
pomelo-nwu 997fcbfaed feat: add terminal-capture for CLI screenshot automation
- Add terminal-capture engine using node-pty + xterm.js + Playwright
- Add scenario runner with TypeScript configuration
- Add pre-built scenarios (/about, /context, /export, /auth)
- Add Cursor skills for terminal-capture and pr-review workflow
- Add motivation documentation

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-14 21:34:42 +08:00

46 lines
1.3 KiB
TypeScript

import type { ScenarioConfig } from '../scenario-runner.js';
export default [
{
name: '/about',
spawn: ['node', 'dist/cli.js', '--yolo'],
terminal: { title: 'qwen-code', cwd: '../../..' },
flow: [
{ type: 'Hi, can you help me understand this codebase?' },
{ type: '/about' },
],
},
{
name: '/context',
spawn: ['node', 'dist/cli.js', '--yolo'],
terminal: { title: 'qwen-code', cwd: '../../..' },
flow: [
{ type: 'How do you understand this project?' },
{ type: '/context' },
],
},
{
name: '/export (tab select)',
spawn: ['node', 'dist/cli.js', '--yolo'],
terminal: { title: 'qwen-code', cwd: '../../..' },
flow: [
{ type: 'Please give me a brief introduction about yourself.' },
{ type: '/export' },
{ key: 'Tab' }, // Tab to open format selection
{ key: 'ArrowDown' }, // Down arrow to switch options
{ key: 'Enter' }, // Confirm selection
],
},
{
name: '/auth',
spawn: ['node', 'dist/cli.js', '--yolo'],
terminal: { title: 'qwen-code', cwd: '../../..' },
flow: [
{ type: '/auth' },
{ key: 'ArrowDown' }, // Select API Key
{ key: 'Enter' }, // Confirm
{ type: 'sk-test-key-123' },
],
},
] satisfies ScenarioConfig[];