chore: roll 1.60.0-alpha-1775258971000 (#1513)

## Summary
- Roll Playwright to `1.60.0-alpha-1775258971000`
This commit is contained in:
Yury Semikhatsky
2026-04-03 16:56:56 -07:00
committed by GitHub
parent b214e8b387
commit a07bc4e247
5 changed files with 36 additions and 26 deletions

View File

@@ -1021,6 +1021,7 @@ http.createServer(async (req, res) => {
- Parameters: - Parameters:
- `action` (string): Operation to perform - `action` (string): Operation to perform
- `index` (number, optional): Tab index, used for close/select. If omitted for close, current tab is closed. - `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** - Read-only: **false**
</details> </details>

28
package-lock.json generated
View File

@@ -13,7 +13,7 @@
], ],
"devDependencies": { "devDependencies": {
"@modelcontextprotocol/sdk": "^1.25.2", "@modelcontextprotocol/sdk": "^1.25.2",
"@playwright/test": "1.60.0-alpha-1774999321000", "@playwright/test": "1.60.0-alpha-1775258971000",
"@types/node": "^24.3.0" "@types/node": "^24.3.0"
} }
}, },
@@ -854,13 +854,13 @@
"link": true "link": true
}, },
"node_modules/@playwright/test": { "node_modules/@playwright/test": {
"version": "1.60.0-alpha-1774999321000", "version": "1.60.0-alpha-1775258971000",
"resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.60.0-alpha-1774999321000.tgz", "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.60.0-alpha-1775258971000.tgz",
"integrity": "sha512-vUvFOjH6jnQ2/noiZe24f5sr+SSOk15Qz49/C9XbwELDZ9So2kys7NhiEfzkTWcnieHRurL04YVl44h2mwDbPw==", "integrity": "sha512-6ZvWKDxCRxSNWtqcXdjjUfdiFkPXWb+q1EgfiG5JL5Hmpz1klCSfFgqssSpjOsZdjVlFTkPBruxClEaKCL3lgw==",
"dev": true, "dev": true,
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
"playwright": "1.60.0-alpha-1774999321000" "playwright": "1.60.0-alpha-1775258971000"
}, },
"bin": { "bin": {
"playwright": "cli.js" "playwright": "cli.js"
@@ -2624,12 +2624,12 @@
} }
}, },
"node_modules/playwright": { "node_modules/playwright": {
"version": "1.60.0-alpha-1774999321000", "version": "1.60.0-alpha-1775258971000",
"resolved": "https://registry.npmjs.org/playwright/-/playwright-1.60.0-alpha-1774999321000.tgz", "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.60.0-alpha-1775258971000.tgz",
"integrity": "sha512-Bd5DkzYKG+2g1jLO6NeTXmGLbBYSFffJIOsR4l4hUBkJvzvGGdLZ7jZb2tOtb0WIoWXQKdQj3Ap6WthV4DBS8w==", "integrity": "sha512-xaS8b8clhxs1uLiBQFdrKYPAxZPI1eZDshsK9LMvMyuNkwiFlK0FxWNWj01kA/dUf5/hm26xarLiM/Ah1DugyA==",
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
"playwright-core": "1.60.0-alpha-1774999321000" "playwright-core": "1.60.0-alpha-1775258971000"
}, },
"bin": { "bin": {
"playwright": "cli.js" "playwright": "cli.js"
@@ -2646,9 +2646,9 @@
"link": true "link": true
}, },
"node_modules/playwright-core": { "node_modules/playwright-core": {
"version": "1.60.0-alpha-1774999321000", "version": "1.60.0-alpha-1775258971000",
"resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.60.0-alpha-1774999321000.tgz", "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.60.0-alpha-1775258971000.tgz",
"integrity": "sha512-ams3Zo4VXxeOg5ZTTh16GkE8g48Bmxo/9pg9gXl9SVKlVohCU7Jaog7XntY8yFuzENA6dJc1Fz7Z/NNTm9nGEw==", "integrity": "sha512-SJ5hXQUf50wA/wI1Z9xkFoJq7IwLhfX4o7hXZJExxtGo3U8UQsS3AtD1TVWkO0KTeMdFnaQ8XE4BMa5wziegnw==",
"license": "Apache-2.0", "license": "Apache-2.0",
"bin": { "bin": {
"playwright-core": "cli.js" "playwright-core": "cli.js"
@@ -3444,8 +3444,8 @@
"version": "0.0.70", "version": "0.0.70",
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
"playwright": "1.60.0-alpha-1774999321000", "playwright": "1.60.0-alpha-1775258971000",
"playwright-core": "1.60.0-alpha-1774999321000" "playwright-core": "1.60.0-alpha-1775258971000"
}, },
"bin": { "bin": {
"playwright-mcp": "cli.js" "playwright-mcp": "cli.js"

View File

@@ -26,7 +26,7 @@
], ],
"devDependencies": { "devDependencies": {
"@modelcontextprotocol/sdk": "^1.25.2", "@modelcontextprotocol/sdk": "^1.25.2",
"@playwright/test": "1.60.0-alpha-1774999321000", "@playwright/test": "1.60.0-alpha-1775258971000",
"@types/node": "^24.3.0" "@types/node": "^24.3.0"
} }
} }

View File

@@ -391,7 +391,7 @@ test(`bypass connection dialog with token`, async ({ browserWithExtension, start
}); });
test.describe('CLI with extension', () => { test.describe('CLI with extension', () => {
test('open <url> --extension', async ({ browserWithExtension, cli, server }, testInfo) => { test('attach <url> --extension', async ({ browserWithExtension, cli, server }, testInfo) => {
const browserContext = await browserWithExtension.launch(); const browserContext = await browserWithExtension.launch();
// Write config file with userDataDir // Write config file with userDataDir
@@ -407,7 +407,7 @@ test.describe('CLI with extension', () => {
}); });
// Start the CLI command in the background // 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 // Wait for the confirmation page to appear
const confirmationPage = await confirmationPagePromise; const confirmationPage = await confirmationPagePromise;
@@ -415,12 +415,21 @@ test.describe('CLI with extension', () => {
// Click the Connect button // Click the Connect button
await confirmationPage.locator('.tab-item', { hasText: 'Playwright MCP extension' }).getByRole('button', { name: 'Connect' }).click(); 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`); const { output } = await cli('goto', server.HELLO_WORLD);
expect(output).toContain(`- Page URL: ${server.HELLO_WORLD}`); // Verify the output
expect(output).toContain(`- Page Title: Title`); expect(output).toContain(`### Page`);
expect(output).toContain(`- Page URL: ${server.HELLO_WORLD}`);
expect(output).toContain(`- Page Title: Title`);
}
}); });
}); });

View File

@@ -33,8 +33,8 @@
} }
}, },
"dependencies": { "dependencies": {
"playwright": "1.60.0-alpha-1774999321000", "playwright": "1.60.0-alpha-1775258971000",
"playwright-core": "1.60.0-alpha-1774999321000" "playwright-core": "1.60.0-alpha-1775258971000"
}, },
"bin": { "bin": {
"playwright-mcp": "cli.js" "playwright-mcp": "cli.js"