Compare commits

...

4 Commits

Author SHA1 Message Date
Jeshurun Hembd bf08019553
Merge 2d0e881db0 into ee2b3813b2 2025-11-21 12:20:03 -05:00
Jeshurun Hembd 2d0e881db0 Update playwright config for new Chrome headless 2025-06-05 16:15:41 -04:00
Jeshurun Hembd b8ee60182e Revert GPU args in playwright launch config 2025-06-04 17:58:43 -04:00
Jeshurun Hembd e87a069808 Update playwright version, yargs syntax 2025-06-04 16:24:05 -04:00
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 } =