mirror of https://github.com/CesiumGS/cesium.git
Merge 2d0e881db0 into ee2b3813b2
This commit is contained in:
commit
bf08019553
|
|
@ -1,14 +1,16 @@
|
|||
import { defineConfig, devices } from "@playwright/test";
|
||||
import yargs from "yargs";
|
||||
|
||||
const argv = yargs(process.argv).options({
|
||||
"update-snapshots": {
|
||||
alias: "u",
|
||||
description: "Update test snapshots.",
|
||||
type: "boolean",
|
||||
default: false,
|
||||
},
|
||||
}).argv;
|
||||
const argv = yargs(process.argv)
|
||||
.options({
|
||||
"update-snapshots": {
|
||||
alias: "u",
|
||||
description: "Update test snapshots.",
|
||||
type: "boolean",
|
||||
default: false,
|
||||
},
|
||||
})
|
||||
.parse();
|
||||
|
||||
const baseUrl = `http://localhost:3000`;
|
||||
const updateSnapshots = argv["update-snapshots"];
|
||||
|
|
@ -53,10 +55,11 @@ export default defineConfig({
|
|||
name: "chromium",
|
||||
use: {
|
||||
...devices["Desktop Chrome"],
|
||||
channel: "chromium",
|
||||
viewport: defaultViewport,
|
||||
launchOptions: {
|
||||
// this forces chrome to use the gpu for webgl which greatly speeds up tests
|
||||
args: ["--use-angle=gl"],
|
||||
args: ["--use-angle=gl", "--enable-features=Vulkan"],
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ const noDevelopmentGallery =
|
|||
taskName === "release" ||
|
||||
taskName === "makeZip" ||
|
||||
taskName === "websiteRelease";
|
||||
const argv = yargs(process.argv).argv;
|
||||
const argv = yargs(process.argv).parse();
|
||||
const verbose = argv.verbose;
|
||||
|
||||
const sourceFiles = [
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@cesium/eslint-config": "^12.0.0",
|
||||
"@playwright/test": "^1.41.1",
|
||||
"@playwright/test": "^1.52.0",
|
||||
"chokidar": "^4.0.1",
|
||||
"cloc": "^2.6.0-cloc",
|
||||
"compression": "^1.7.4",
|
||||
|
|
|
|||
|
|
@ -37,7 +37,8 @@ const argv = yargs(process.argv)
|
|||
description: "If true, skip build step and serve existing built files.",
|
||||
},
|
||||
})
|
||||
.help().argv;
|
||||
.help()
|
||||
.parse();
|
||||
|
||||
// These functions will not exist in the production zip file but they also won't be run
|
||||
const { getSandcastleConfig, buildSandcastleGallery, buildSandcastleApp } =
|
||||
|
|
|
|||
Loading…
Reference in New Issue