Skip to content

Commit f43a8d1

Browse files
committed
chore: roll to 1.57.0-alpha-1761929702000
1 parent ac6e678 commit f43a8d1

File tree

3 files changed

+25
-19
lines changed

3 files changed

+25
-19
lines changed

package-lock.json

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@
3737
}
3838
},
3939
"dependencies": {
40-
"playwright": "1.57.0-alpha-2025-10-24",
41-
"playwright-core": "1.57.0-alpha-2025-10-24"
40+
"playwright": "1.57.0-alpha-1761929702000",
41+
"playwright-core": "1.57.0-alpha-1761929702000"
4242
},
4343
"bin": {
4444
"mcp-server-playwright": "cli.js"
4545
},
4646
"devDependencies": {
4747
"@modelcontextprotocol/sdk": "^1.17.5",
48-
"@playwright/test": "1.57.0-alpha-2025-10-24",
48+
"@playwright/test": "1.57.0-alpha-1761929702000",
4949
"@types/node": "^24.3.0",
5050
"zod-to-json-schema": "^3.24.6"
5151
}

tests/click.spec.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,16 @@
1616

1717
import { test, expect } from './fixtures';
1818

19-
test('browser_click', async ({ client, server, mcpBrowser }) => {
19+
test('browser_click', async ({ client, server }) => {
2020
server.setContent('/', `
2121
<title>Title</title>
2222
<button>Submit</button>
23+
<script>
24+
const button = document.querySelector('button');
25+
button.addEventListener('click', () => {
26+
button.focus(); // without manual focus, webkit focuses body
27+
});
28+
</script>
2329
`, 'text/html');
2430

2531
expect(await client.callTool({
@@ -38,6 +44,6 @@ test('browser_click', async ({ client, server, mcpBrowser }) => {
3844
},
3945
})).toHaveResponse({
4046
code: `await page.getByRole('button', { name: 'Submit' }).click();`,
41-
pageState: expect.stringContaining(`- button "Submit" ${mcpBrowser !== 'webkit' || process.platform === 'linux' ? '[active] ' : ''}[ref=e2]`),
47+
pageState: expect.stringContaining(`button "Submit" [active] [ref=e2]`),
4248
});
4349
});

0 commit comments

Comments
 (0)