From a07bc4e2472e33d47a4383b4c0c293e13417176b Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Fri, 3 Apr 2026 16:56:56 -0700 Subject: [PATCH] chore: roll 1.60.0-alpha-1775258971000 (#1513) ## Summary - Roll Playwright to `1.60.0-alpha-1775258971000` --- README.md | 1 + package-lock.json | 28 +++++++++++----------- package.json | 2 +- packages/extension/tests/extension.spec.ts | 27 ++++++++++++++------- packages/playwright-mcp/package.json | 4 ++-- 5 files changed, 36 insertions(+), 26 deletions(-) diff --git a/README.md b/README.md index 812074d..622cc72 100644 --- a/README.md +++ b/README.md @@ -1021,6 +1021,7 @@ http.createServer(async (req, res) => { - Parameters: - `action` (string): Operation to perform - `index` (number, optional): Tab index, used for close/select. If omitted for close, current tab is closed. + - `url` (string, optional): URL to navigate to in the new tab, used for new. - Read-only: **false** diff --git a/package-lock.json b/package-lock.json index 8699233..a564a27 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,7 @@ ], "devDependencies": { "@modelcontextprotocol/sdk": "^1.25.2", - "@playwright/test": "1.60.0-alpha-1774999321000", + "@playwright/test": "1.60.0-alpha-1775258971000", "@types/node": "^24.3.0" } }, @@ -854,13 +854,13 @@ "link": true }, "node_modules/@playwright/test": { - "version": "1.60.0-alpha-1774999321000", - "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.60.0-alpha-1774999321000.tgz", - "integrity": "sha512-vUvFOjH6jnQ2/noiZe24f5sr+SSOk15Qz49/C9XbwELDZ9So2kys7NhiEfzkTWcnieHRurL04YVl44h2mwDbPw==", + "version": "1.60.0-alpha-1775258971000", + "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.60.0-alpha-1775258971000.tgz", + "integrity": "sha512-6ZvWKDxCRxSNWtqcXdjjUfdiFkPXWb+q1EgfiG5JL5Hmpz1klCSfFgqssSpjOsZdjVlFTkPBruxClEaKCL3lgw==", "dev": true, "license": "Apache-2.0", "dependencies": { - "playwright": "1.60.0-alpha-1774999321000" + "playwright": "1.60.0-alpha-1775258971000" }, "bin": { "playwright": "cli.js" @@ -2624,12 +2624,12 @@ } }, "node_modules/playwright": { - "version": "1.60.0-alpha-1774999321000", - "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.60.0-alpha-1774999321000.tgz", - "integrity": "sha512-Bd5DkzYKG+2g1jLO6NeTXmGLbBYSFffJIOsR4l4hUBkJvzvGGdLZ7jZb2tOtb0WIoWXQKdQj3Ap6WthV4DBS8w==", + "version": "1.60.0-alpha-1775258971000", + "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.60.0-alpha-1775258971000.tgz", + "integrity": "sha512-xaS8b8clhxs1uLiBQFdrKYPAxZPI1eZDshsK9LMvMyuNkwiFlK0FxWNWj01kA/dUf5/hm26xarLiM/Ah1DugyA==", "license": "Apache-2.0", "dependencies": { - "playwright-core": "1.60.0-alpha-1774999321000" + "playwright-core": "1.60.0-alpha-1775258971000" }, "bin": { "playwright": "cli.js" @@ -2646,9 +2646,9 @@ "link": true }, "node_modules/playwright-core": { - "version": "1.60.0-alpha-1774999321000", - "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.60.0-alpha-1774999321000.tgz", - "integrity": "sha512-ams3Zo4VXxeOg5ZTTh16GkE8g48Bmxo/9pg9gXl9SVKlVohCU7Jaog7XntY8yFuzENA6dJc1Fz7Z/NNTm9nGEw==", + "version": "1.60.0-alpha-1775258971000", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.60.0-alpha-1775258971000.tgz", + "integrity": "sha512-SJ5hXQUf50wA/wI1Z9xkFoJq7IwLhfX4o7hXZJExxtGo3U8UQsS3AtD1TVWkO0KTeMdFnaQ8XE4BMa5wziegnw==", "license": "Apache-2.0", "bin": { "playwright-core": "cli.js" @@ -3444,8 +3444,8 @@ "version": "0.0.70", "license": "Apache-2.0", "dependencies": { - "playwright": "1.60.0-alpha-1774999321000", - "playwright-core": "1.60.0-alpha-1774999321000" + "playwright": "1.60.0-alpha-1775258971000", + "playwright-core": "1.60.0-alpha-1775258971000" }, "bin": { "playwright-mcp": "cli.js" diff --git a/package.json b/package.json index 44b6a90..a742b8f 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ ], "devDependencies": { "@modelcontextprotocol/sdk": "^1.25.2", - "@playwright/test": "1.60.0-alpha-1774999321000", + "@playwright/test": "1.60.0-alpha-1775258971000", "@types/node": "^24.3.0" } } diff --git a/packages/extension/tests/extension.spec.ts b/packages/extension/tests/extension.spec.ts index 0ac98a3..6f052ad 100644 --- a/packages/extension/tests/extension.spec.ts +++ b/packages/extension/tests/extension.spec.ts @@ -391,10 +391,10 @@ test(`bypass connection dialog with token`, async ({ browserWithExtension, start }); test.describe('CLI with extension', () => { - test('open --extension', async ({ browserWithExtension, cli, server }, testInfo) => { + test('attach --extension', async ({ browserWithExtension, cli, server }, testInfo) => { const browserContext = await browserWithExtension.launch(); - // Write config file with userDataDir + // Write config file with userDataDir const configPath = testInfo.outputPath('cli-config.json'); await fs.writeFile(configPath, JSON.stringify({ browser: { @@ -407,7 +407,7 @@ test.describe('CLI with extension', () => { }); // Start the CLI command in the background - const cliPromise = cli('open', server.HELLO_WORLD, '--extension', `--config=cli-config.json`); + const cliPromise = cli('attach', '--extension', `--config=cli-config.json`); // Wait for the confirmation page to appear const confirmationPage = await confirmationPagePromise; @@ -415,12 +415,21 @@ test.describe('CLI with extension', () => { // Click the Connect button await confirmationPage.locator('.tab-item', { hasText: 'Playwright MCP extension' }).getByRole('button', { name: 'Connect' }).click(); - // Wait for the CLI command to complete - const { output } = await cliPromise; + { + // Wait for the CLI command to complete + const { output } = await cliPromise; + // Verify the output + expect(output).toContain(`### Page`); + expect(output).toContain(`- Page URL: chrome-extension://${extensionId}/connect.html?`); + expect(output).toContain(`- Page Title: Playwright MCP extension`); + } - // Verify the output - expect(output).toContain(`### Page`); - expect(output).toContain(`- Page URL: ${server.HELLO_WORLD}`); - expect(output).toContain(`- Page Title: Title`); + { + const { output } = await cli('goto', server.HELLO_WORLD); + // Verify the output + expect(output).toContain(`### Page`); + expect(output).toContain(`- Page URL: ${server.HELLO_WORLD}`); + expect(output).toContain(`- Page Title: Title`); + } }); }); diff --git a/packages/playwright-mcp/package.json b/packages/playwright-mcp/package.json index af2af60..8be68e5 100644 --- a/packages/playwright-mcp/package.json +++ b/packages/playwright-mcp/package.json @@ -33,8 +33,8 @@ } }, "dependencies": { - "playwright": "1.60.0-alpha-1774999321000", - "playwright-core": "1.60.0-alpha-1774999321000" + "playwright": "1.60.0-alpha-1775258971000", + "playwright-core": "1.60.0-alpha-1775258971000" }, "bin": { "playwright-mcp": "cli.js"