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: print "Using executable at ..." for custom executable (#6077)
Dmitry Gozmanbd61f863c446
diff --git a/tests/config/default.config.ts b/tests/config/default.config.tsindex 7cafef050b..7e88194311 100644--- a/tests/config/default.config.ts+++ b/tests/config/default.config.ts@@ -52,6 +52,8 @@ const serverEnv = new ServerEnv();const browsers = ['chromium', 'webkit', 'firefox'] as BrowserName[];for (const browserName of browsers) {const executablePath = getExecutablePath(browserName);+ if (executablePath && (process.env.FOLIO_WORKER_INDEX === undefined || process.env.FOLIO_WORKER_INDEX === ''))+ console.error(`Using executable at ${executablePath}`);const mode = (process.env.PWMODE || 'default') as ('default' | 'driver' | 'service');const options = {mode,diff --git a/tests/folio/src/dispatcher.ts b/tests/folio/src/dispatcher.tsindex 18c4b7ca3b..5bd64eb04f 100644--- a/tests/folio/src/dispatcher.ts+++ b/tests/folio/src/dispatcher.ts@@ -349,6 +349,7 @@ class Worker extends EventEmitter {env: {FORCE_COLOR: process.stdout.isTTY ? '1' : '0',DEBUG_COLORS: process.stdout.isTTY ? '1' : '0',+ FOLIO_WORKER_INDEX: String(this.index),...process.env},// Can't pipe since piping slows down termination for some reason.