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(bidi): add Firefox prefs for proxying localhost in BiDi tests (#36824)
Holger Benl4340098bd464
diff --git a/tests/bidi/playwright.config.ts b/tests/bidi/playwright.config.tsindex a26b72bd53..2f36757f68 100644--- a/tests/bidi/playwright.config.ts+++ b/tests/bidi/playwright.config.ts@@ -27,10 +27,14 @@ const trace = !!process.env.PWTEST_TRACE;const hasDebugOutput = process.env.DEBUG?.includes('pw:');function firefoxUserPrefs() {+ const defaultPrefs = {+ 'network.proxy.allow_hijacking_localhost': true,+ 'network.proxy.testing_localhost_is_secure_when_hijacked': true,+ };const prefsString = process.env.PWTEST_FIREFOX_USER_PREFS;if (!prefsString)- return undefined;- return JSON.parse(prefsString);+ return defaultPrefs;+ return { ...defaultPrefs, ...JSON.parse(prefsString) };}const outputDir = path.join(__dirname, '..', '..', 'test-results');