Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
chore: produce longer videos in mcp test (#37617)
Pavel Feldmand21ccbfaf287
diff --git a/tests/mcp/video.spec.ts b/tests/mcp/video.spec.tsindex 90231fe398..0da9d2653e 100644--- a/tests/mcp/video.spec.ts+++ b/tests/mcp/video.spec.ts@@ -36,6 +36,20 @@ for (const mode of ['isolated', 'persistent']) {code: expect.stringContaining(`page.goto('http://localhost`),});+ await client.callTool({+ name: 'browser_evaluate',+ arguments: {+ function: `async () => {+ document.body.style.backgroundColor = "red";+ await new Promise(resolve => setTimeout(resolve, 100));+ document.body.style.backgroundColor = "green";+ await new Promise(resolve => setTimeout(resolve, 100));+ document.body.style.backgroundColor = "blue";+ await new Promise(resolve => setTimeout(resolve, 100));+ }`,+ },+ });+expect(await client.callTool({name: 'browser_close',})).toHaveResponse({@@ -72,6 +86,20 @@ for (const mode of ['isolated', 'persistent']) {code: expect.stringContaining(`page.goto('http://localhost`),});+ await client.callTool({+ name: 'browser_evaluate',+ arguments: {+ function: `async () => {+ document.body.style.backgroundColor = "red";+ await new Promise(resolve => setTimeout(resolve, 100));+ document.body.style.backgroundColor = "green";+ await new Promise(resolve => setTimeout(resolve, 100));+ document.body.style.backgroundColor = "blue";+ await new Promise(resolve => setTimeout(resolve, 100));+ }`,+ },+ });+expect(await client.callTool({name: 'browser_close',})).toHaveResponse({