mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 08:18:18 +08:00
DEV: Update chrome-launcher from 0.15.2 to 1.1.0 (#25909)
This commit is contained in:
parent
a8a39d86b4
commit
b337ae5ae9
|
@ -63,7 +63,7 @@ task "smoke:test" do
|
||||||
|
|
||||||
node_arguments = []
|
node_arguments = []
|
||||||
node_arguments << "--inspect-brk" if ENV["DEBUG_NODE"]
|
node_arguments << "--inspect-brk" if ENV["DEBUG_NODE"]
|
||||||
node_arguments << "#{Rails.root}/test/smoke_test.js"
|
node_arguments << "#{Rails.root}/test/smoke-test.mjs"
|
||||||
node_arguments << url
|
node_arguments << url
|
||||||
|
|
||||||
IO
|
IO
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
"ace-builds": "1.4.13",
|
"ace-builds": "1.4.13",
|
||||||
"chart.js": "3.5.1",
|
"chart.js": "3.5.1",
|
||||||
"chartjs-plugin-datalabels": "2.2.0",
|
"chartjs-plugin-datalabels": "2.2.0",
|
||||||
"chrome-launcher": "^0.15.1",
|
"chrome-launcher": "^1.1.0",
|
||||||
"chrome-remote-interface": "^0.33.0",
|
"chrome-remote-interface": "^0.33.0",
|
||||||
"concurrently": "^8.2.2",
|
"concurrently": "^8.2.2",
|
||||||
"diffhtml": "1.0.0-beta.30",
|
"diffhtml": "1.0.0-beta.30",
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
const args = process.argv.slice(2);
|
const args = process.argv.slice(2);
|
||||||
|
|
||||||
if (args.length < 1 || args.length > 2) {
|
if (args.length < 1 || args.length > 2) {
|
||||||
console.log("Expecting: node {smoke_test.js} {url}");
|
console.log("Expecting: node test/smoke-test.mjs {URL}");
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -11,13 +11,13 @@ const url = args[0];
|
||||||
|
|
||||||
console.log(`Starting Discourse Smoke Test for ${url}`);
|
console.log(`Starting Discourse Smoke Test for ${url}`);
|
||||||
|
|
||||||
const chromeLauncher = require("chrome-launcher");
|
import { Launcher } from "chrome-launcher";
|
||||||
const puppeteer = require("puppeteer-core");
|
import path from "path";
|
||||||
const path = require("path");
|
import puppeteer from "puppeteer-core";
|
||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
const browser = await puppeteer.launch({
|
const browser = await puppeteer.launch({
|
||||||
executablePath: chromeLauncher.Launcher.getInstallations()[0],
|
executablePath: Launcher.getInstallations()[0],
|
||||||
// when debugging locally setting the SHOW_BROWSER env variable can be very helpful
|
// when debugging locally setting the SHOW_BROWSER env variable can be very helpful
|
||||||
headless: process.env.SHOW_BROWSER === undefined,
|
headless: process.env.SHOW_BROWSER === undefined,
|
||||||
args: ["--disable-local-storage", "--no-sandbox"],
|
args: ["--disable-local-storage", "--no-sandbox"],
|
18
yarn.lock
18
yarn.lock
|
@ -4549,15 +4549,15 @@ check-error@^1.0.2:
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
fsevents "~2.3.2"
|
fsevents "~2.3.2"
|
||||||
|
|
||||||
chrome-launcher@^0.15.1:
|
chrome-launcher@^1.1.0:
|
||||||
version "0.15.2"
|
version "1.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/chrome-launcher/-/chrome-launcher-0.15.2.tgz#4e6404e32200095fdce7f6a1e1004f9bd36fa5da"
|
resolved "https://registry.yarnpkg.com/chrome-launcher/-/chrome-launcher-1.1.0.tgz#b5fd371839618bfc38e36cab569ef07c93fc50bf"
|
||||||
integrity sha512-zdLEwNo3aUVzIhKhTtXfxhdvZhUghrnmkvcAq2NoDd+LeOHKf03H5jwZ8T/STsAlzyALkBVK552iaG1fGf1xVQ==
|
integrity sha512-rJYWeEAERwWIr3c3mEVXwNiODPEdMRlRxHc47B1qHPOolHZnkj7rMv1QSUfPoG6MgatWj5AxSpnKKR4QEwEQIQ==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@types/node" "*"
|
"@types/node" "*"
|
||||||
escape-string-regexp "^4.0.0"
|
escape-string-regexp "^4.0.0"
|
||||||
is-wsl "^2.2.0"
|
is-wsl "^2.2.0"
|
||||||
lighthouse-logger "^1.0.0"
|
lighthouse-logger "^2.0.1"
|
||||||
|
|
||||||
chrome-remote-interface@^0.33.0:
|
chrome-remote-interface@^0.33.0:
|
||||||
version "0.33.0"
|
version "0.33.0"
|
||||||
|
@ -8958,10 +8958,10 @@ levn@^0.4.1:
|
||||||
prelude-ls "^1.2.1"
|
prelude-ls "^1.2.1"
|
||||||
type-check "~0.4.0"
|
type-check "~0.4.0"
|
||||||
|
|
||||||
lighthouse-logger@^1.0.0:
|
lighthouse-logger@^2.0.1:
|
||||||
version "1.4.2"
|
version "2.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/lighthouse-logger/-/lighthouse-logger-1.4.2.tgz#aef90f9e97cd81db367c7634292ee22079280aaa"
|
resolved "https://registry.yarnpkg.com/lighthouse-logger/-/lighthouse-logger-2.0.1.tgz#48895f639b61cca89346bb6f47f7403a3895fa02"
|
||||||
integrity sha512-gPWxznF6TKmUHrOQjlVo2UbaL2EJ71mb2CCeRs/2qBpi4L/g4LUVc9+3lKQ6DTUZwJswfM7ainGrLO1+fOqa2g==
|
integrity sha512-ioBrW3s2i97noEmnXxmUq7cjIcVRjT5HBpAYy8zE11CxU9HqlWHHeRxfeN1tn8F7OEMVPIC9x1f8t3Z7US9ehQ==
|
||||||
dependencies:
|
dependencies:
|
||||||
debug "^2.6.9"
|
debug "^2.6.9"
|
||||||
marky "^1.2.2"
|
marky "^1.2.2"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user