Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 12 additions & 9 deletions Specs/e2e/playwright.config.js
Original file line number Diff line number Diff line change
@@ -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"];
Expand Down Expand Up @@ -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"],
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,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 = [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.4.0-cloc",
"compression": "^1.7.4",
Expand Down
3 changes: 2 additions & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ const argv = yargs(process.argv)
description: "If true, skip build step and serve existing built files.",
},
})
.help().argv;
.help()
.parse();

const outputDirectory = path.join("Build", "CesiumDev");

Expand Down