This commit is contained in:
Jeshurun Hembd 2025-11-21 12:20:03 -05:00 committed by GitHub
commit bf08019553
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 16 additions and 12 deletions

View File

@ -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"],
},
},
},

View File

@ -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 = [

View File

@ -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",

View File

@ -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 } =