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
fix(mcp): prevent unhandled rejection in test op queue (#40698)
Simon Knotta2f2e0241595
diff --git a/packages/playwright/src/mcp/test/testContext.ts b/packages/playwright/src/mcp/test/testContext.tsindex 548f1fd7fb..3c53a96667 100644--- a/packages/playwright/src/mcp/test/testContext.ts+++ b/packages/playwright/src/mcp/test/testContext.ts@@ -108,7 +108,7 @@ export class TestContext {private async _enqueue<T>(fn: () => Promise<T>): Promise<T> {const next = this._testOpQueue.then(fn);- this._testOpQueue = next.then(() => {});+ this._testOpQueue = next.then(() => {}, () => {});return await next;}