chore(cli): implement test harness#38914
Conversation
This comment has been minimized.
This comment has been minimized.
21f6c82 to
c72d6a0
Compare
| const userDataDir = testInfo.outputPath('user-data-dir'); | ||
|
|
||
| const daemonPath = path.resolve(__dirname, '../../packages/playwright/cli.js'); | ||
| const daemon = spawn(process.execPath, [daemonPath, 'run-mcp-server', `--daemon=${socketPath}`, `--user-data-dir=${userDataDir}`], { |
There was a problem hiding this comment.
I'd recommend using a childProcess fixture from the commonFixtures.ts - it has some useful goodies already.
There was a problem hiding this comment.
I'll leave it as an exercise for the reader!
|
|
||
| cli: async ({ socketPath }, use, testInfo) => { | ||
| await use(async (args: string[]) => { | ||
| const cli = spawn(process.execPath, [require.resolve('../../packages/playwright/lib/mcp/terminal/cli.js'), ...args], { |
There was a problem hiding this comment.
Perhaps spawnSync will be fine here?
c72d6a0 to
aeca09e
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
aeca09e to
b73a644
Compare
This comment has been minimized.
This comment has been minimized.
b73a644 to
324a3a5
Compare
This comment has been minimized.
This comment has been minimized.
f40c2db to
980431f
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
980431f to
76751a5
Compare
Test results for "MCP"10 failed 3096 passed, 300 skipped Merge workflow run. |
No description provided.