diff --git a/Specs/e2e/playwright.config.js b/Specs/e2e/playwright.config.js index 84c0884bbcac..0d3e7eba0be0 100644 --- a/Specs/e2e/playwright.config.js +++ b/Specs/e2e/playwright.config.js @@ -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"], }, }, }, diff --git a/gulpfile.js b/gulpfile.js index d31536b635e5..5ec495db241b 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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 = [ diff --git a/package.json b/package.json index 82c4fac0727b..1fb578df63e9 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/server.js b/server.js index f536cd4b5acf..105e1f818aa8 100644 --- a/server.js +++ b/server.js @@ -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");