Swithing puppeteer to puppeteer core and adding chromium to dev dependencies
This commit is contained in:
parent
726e667a4f
commit
0e7011646d
32770
package-lock.json
generated
32770
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -45,6 +45,7 @@
|
||||
"babel-plugin-transform-runtime": "^6.23.0",
|
||||
"babel-polyfill": "^6.26.0",
|
||||
"babel-preset-env": "^1.7.0",
|
||||
"chromium": "^3.0.3",
|
||||
"cpy-cli": "^3.1.1",
|
||||
"cross-env": "^7.0.2",
|
||||
"eslint": "^6.8.0",
|
||||
@ -65,7 +66,7 @@
|
||||
"p-map-series": "^2.1.0",
|
||||
"p-whilst": "^2.1.0",
|
||||
"pify": "^5.0.0",
|
||||
"puppeteer": "^5.2.1",
|
||||
"puppeteer-core": "^13.4.0",
|
||||
"remark-cli": "^8.0.1",
|
||||
"remark-validate-links": "^10.0.2",
|
||||
"rimraf": "^3.0.2",
|
||||
|
@ -1,6 +1,7 @@
|
||||
'use strict'
|
||||
const assert = require('assert')
|
||||
const puppeteer = require('puppeteer')
|
||||
const puppeteer = require('puppeteer-core')
|
||||
const chromium = require('chromium')
|
||||
const path = require('path')
|
||||
const mapSeries = require('p-map-series')
|
||||
const pMap = require('p-map')
|
||||
@ -16,13 +17,14 @@ const wait = async (milliseconds) => {
|
||||
})
|
||||
}
|
||||
|
||||
describe(`orbit-db - browser concurrent writes`, function() {
|
||||
describe(`orbit-db - browser concurrent writes`, function () {
|
||||
this.timeout(numTabs * config.timeout)
|
||||
|
||||
let browser
|
||||
const options = {
|
||||
ignoreHTTPSErrors: true,
|
||||
args: ['--no-sandbox', '--disable-setuid-sandbox']
|
||||
args: ['--no-sandbox', '--disable-setuid-sandbox'],
|
||||
executablePath: chromium.path
|
||||
}
|
||||
|
||||
before(async () => {
|
||||
@ -33,7 +35,7 @@ describe(`orbit-db - browser concurrent writes`, function() {
|
||||
await browser.close()
|
||||
})
|
||||
|
||||
describe('Write concurrently', function() {
|
||||
describe('Write concurrently', function () {
|
||||
let tabs = []
|
||||
before(async () => {
|
||||
const createTab = async () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user