Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/playwright-core/browsers.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
{
"name": "webkit",
"revision": "2341",
"revision": "2342",
"installByDefault": true,
"revisionOverrides": {
"mac14": "2251",
Expand Down
15 changes: 9 additions & 6 deletions tests/mcp/cli-core.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,12 @@ test('eval <ref>', async ({ cli, server }) => {
expect(output).toContain('"BUTTON"');
});

test('dialog-accept', async ({ cli, server }) => {
// Firefox can deliver Page.dialogOpened after the default 5s action timeout
// (seen after the FF 153 roll, especially on Windows), so the click loses the
// modal race and the response never includes the dialog. Keep the race open longer.
test('dialog-accept', async ({ cli, server, mcpBrowser }) => {
server.setContent('/', `<button onclick="alert('MyAlert')">Button</button>`, 'text/html');
await cli('open', server.PREFIX);
await cli('open', server.PREFIX, { env: { PLAYWRIGHT_MCP_TIMEOUT_ACTION: mcpBrowser === 'firefox' ? '30000' : '' } });
const { output } = await cli('click', 'e2');
expect(output).toContain('MyAlert');
expect(output).toContain('["alert" dialog with message "MyAlert"]: can be handled by dialog-accept or dialog-dismiss');
Expand All @@ -203,19 +206,19 @@ test('dialog-accept', async ({ cli, server }) => {
expect(inlineSnapshot).not.toContain('MyAlert');
});

test('dialog-dismiss', async ({ cli, server }) => {
test('dialog-dismiss', async ({ cli, server, mcpBrowser }) => {
server.setContent('/', `<button onclick="alert('MyAlert')">Button</button>`, 'text/html');
await cli('open', server.PREFIX);
await cli('open', server.PREFIX, { env: { PLAYWRIGHT_MCP_TIMEOUT_ACTION: mcpBrowser === 'firefox' ? '30000' : '' } });
const { output } = await cli('click', 'e2');
expect(output).toContain('MyAlert');
await cli('dialog-dismiss');
const { inlineSnapshot } = await cli('snapshot');
expect(inlineSnapshot).not.toContain('MyAlert');
});

test('dialog-accept <prompt>', async ({ cli, server }) => {
test('dialog-accept <prompt>', async ({ cli, server, mcpBrowser }) => {
server.setContent('/', `<button onclick="document.body.textContent = prompt('MyAlert')">Button</button>`, 'text/html');
await cli('open', server.PREFIX);
await cli('open', server.PREFIX, { env: { PLAYWRIGHT_MCP_TIMEOUT_ACTION: mcpBrowser === 'firefox' ? '30000' : '' } });
await cli('click', 'e2');
await cli('dialog-accept', 'my reply');
const { inlineSnapshot } = await cli('snapshot');
Expand Down
24 changes: 12 additions & 12 deletions tests/playwright-test/stable-test-runner/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/playwright-test/stable-test-runner/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"private": true,
"dependencies": {
"@playwright/test": "^1.62.0-alpha-2026-07-20"
"@playwright/test": "^1.63.0-alpha-2026-08-03"
}
}
Loading