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
feat(rpc): keep non-rpc linux bots for now (#3381)
Dmitry Gozman8bb6d73b4486
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.ymlindex 3198fd058b..095bfe1a80 100644--- a/.github/workflows/tests.yml+++ b/.github/workflows/tests.yml@@ -198,7 +198,7 @@ jobs:fail-fast: falsematrix:browser: [chromium, firefox, webkit]- transport: [wire, object]+ transport: [wire, none]runs-on: ubuntu-18.04steps:- uses: actions/checkout@v2diff --git a/index.js b/index.jsindex 31266294c2..f7247b83ed 100644--- a/index.js+++ b/index.js@@ -21,4 +21,9 @@ const path = require('path');const playwright = new Playwright(__dirname, require(path.join(__dirname, 'browsers.json'))['browsers']);playwright.electron = new Electron();-module.exports = setupInProcess(playwright);+if (process.env.PWCHANNEL === 'none') {+ playwright._toImpl = x => x;+ module.exports = playwright;+} else {+ module.exports = setupInProcess(playwright);+}diff --git a/test/harness/testOptions.js b/test/harness/testOptions.jsindex 15cb3028c2..946d1390c5 100644--- a/test/harness/testOptions.js+++ b/test/harness/testOptions.js@@ -29,7 +29,7 @@ testOptions.CHROMIUM = browserName === 'chromium';testOptions.FFOX = browserName === 'firefox';testOptions.WEBKIT = browserName === 'webkit';testOptions.USES_HOOKS = process.env.PWCHANNEL === 'wire';-testOptions.CHANNEL = true;+testOptions.CHANNEL = process.env.PWCHANNEL !== 'none';testOptions.HEADLESS = !!valueFromEnv('HEADLESS', true);testOptions.ASSETS_DIR = path.join(__dirname, '..', 'assets');testOptions.GOLDEN_DIR = path.join(__dirname, '..', 'golden-' + browserName);