Remove implementation detail check for page._evaluateFunction

Co-authored-by: pavelfeldman <883973+pavelfeldman@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-07-18 20:14:39 +00:00
parent 269d8d8a4d
commit ce1652d7af

View File

@ -73,7 +73,6 @@ test('browser_evaluate (error)', async ({ client, server, mcpBrowser }) => {
expect(result.content?.[0].text).toContain('undefinedVariable is not defined');
} else {
// Chrome, Firefox, etc. include the Playwright evaluation context
expect(result.content?.[0].text).toContain('page._evaluateFunction');
expect(result.content?.[0].text).toContain('undefinedVariable is not defined');
}
});