test: run tests on MCP server inside Docker (#361)

https://github.com/microsoft/playwright-mcp/issues/346
This commit is contained in:
Max Schmitt
2025-05-07 18:04:20 +02:00
committed by GitHub
parent a115c31953
commit 09ba7989c3
8 changed files with 84 additions and 33 deletions

View File

@@ -73,8 +73,8 @@ test('browser_take_screenshot (element)', async ({ client }) => {
});
});
test('--output-dir should work', async ({ startClient }, testInfo) => {
const outputDir = testInfo.outputPath('output');
test('--output-dir should work', async ({ startClient, localOutputPath }) => {
const outputDir = localOutputPath('output');
const client = await startClient({
args: ['--output-dir', outputDir],
});
@@ -95,8 +95,8 @@ test('--output-dir should work', async ({ startClient }, testInfo) => {
});
test('browser_take_screenshot (outputDir)', async ({ startClient }, testInfo) => {
const outputDir = testInfo.outputPath('output');
test('browser_take_screenshot (outputDir)', async ({ startClient, localOutputPath }) => {
const outputDir = localOutputPath('output');
const client = await startClient({
config: { outputDir },
});