Skip to content

Commit

Permalink
feat: update to pw 1.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomrdias committed Jan 28, 2021
1 parent 3a68cbb commit 967ad8a
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 7,036 deletions.
67 changes: 0 additions & 67 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
fail-fast: true
matrix:
node: [12, 14]
node: [14]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ node_modules
.nyc_output
coverage.lcov
yarn-error.log
yarn.lock
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,21 +43,21 @@
"camelcase": "^6.2.0",
"delay": "^4.4.0",
"get-port": "^5.1.1",
"globby": "^11.0.1",
"kleur": "^4.1.3",
"globby": "^11.0.2",
"kleur": "^4.1.4",
"lilconfig": "^2.0.2",
"lodash": "^4.17.20",
"merge-options": "^3.0.4",
"ora": "^5.1.0",
"ora": "^5.3.0",
"p-each-series": "^2.2.0",
"playwright-core": "1.6.2",
"playwright-core": "1.8.0",
"polka": "^0.5.2",
"resolve-cwd": "^3.0.0",
"sade": "^1.7.4",
"sirv": "^1.0.9",
"sirv": "^1.0.10",
"strip-ansi": "^6.0.0",
"tempy": "^1.0.0",
"v8-to-istanbul": "^7.0.0",
"v8-to-istanbul": "^7.1.0",
"webpack": "^4.42.1",
"webpack-merge": "^4.2.2"
},
Expand All @@ -71,14 +71,14 @@
"eslint-config-halo": "^2.3.3",
"esm": "^3.2.25",
"execa": "^5.0.0",
"husky": "^4.3.5",
"husky": "^4.3.8",
"lint-staged": "^10.5.3",
"mocha": "^8.2.1",
"np": "^7.0.0",
"np": "^7.2.0",
"tap-spec": "^5.0.0",
"tape": "^5.0.1",
"tape": "^5.1.1",
"uvu": "^0.5.1",
"zora": "^4.0.1"
"zora": "^4.0.2"
},
"husky": {
"hooks": {
Expand Down
3 changes: 1 addition & 2 deletions src/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@ class Runner {
`--disable-extensions-except=${this.dir}`,
`--load-extension=${this.dir}`
] : [],
dumpio: process.env.PW_TEST_DUMPIO || false,
env: { HUGO: 100 }
dumpio: process.env.PW_TEST_DUMPIO || false
};

if (this.options.incognito) {
Expand Down
5 changes: 2 additions & 3 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,7 @@ const getPw = async (browserName) => {
process.env.PLAYWRIGHT_BROWSERS_PATH = cachePath;
}
const { installBrowsersWithProgressBar } = require('playwright-core/lib/install/installer');
const { Playwright } = require('playwright-core/lib/server/playwright');
const { setupInProcess } = require('playwright-core/lib/inprocess');
const setupInProcess = require('playwright-core/lib/inprocess');
const browsers = require('playwright-core/browsers.json');

browsers.browsers[0].download = true; // chromium
Expand All @@ -185,7 +184,7 @@ const getPw = async (browserName) => {
JSON.stringify(browsers, null, 2)
);
await installBrowsersWithProgressBar(cachePath);
const api = setupInProcess(new Playwright(cachePath, browsers.browsers));
const api = setupInProcess;

return api[browserName];
};
Expand Down
Loading

0 comments on commit 967ad8a

Please sign in to comment.