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
test(mcp): simplify PLAYWRIGHT_SOCKETS_DIR to hash of outputDir (#40690)
Simon Knottd3abc83d9827
diff --git a/tests/mcp/cli-fixtures.ts b/tests/mcp/cli-fixtures.tsindex 1a5f1e79fa..8c5ab020b3 100644--- a/tests/mcp/cli-fixtures.ts+++ b/tests/mcp/cli-fixtures.ts@@ -119,11 +119,7 @@ function cliEnv() {PLAYWRIGHT_SERVER_REGISTRY: test.info().outputPath('registry'),PWTEST_DASHBOARD_SETTINGS_FILE: test.info().outputPath('dashboard.settings.json'),PLAYWRIGHT_DAEMON_SESSION_DIR: test.info().outputPath('daemon'),- // Include a short hash of outputDir so that concurrent runs from different- // checkouts use different socket directories, while runs within the same- // checkout share them (which helps surface race conditions and cleanup- // issues). The hash is kept short to stay clear of socket path length limits.- PLAYWRIGHT_SOCKETS_DIR: path.join(os.tmpdir(), 'ds' + String(test.info().workerIndex) + '-' + crypto.createHash('sha1').update(test.info().outputDir).digest('hex').slice(0, 8)),+ PLAYWRIGHT_SOCKETS_DIR: path.join(os.tmpdir(), 'ds-' + crypto.createHash('sha1').update(test.info().outputDir).digest('hex').slice(0, 16)),PWTEST_CLI_CHANNEL_SCAN_DISABLED_FOR_TEST: '1',};}