summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOskar Nyberg <oskar@mullvad.net>2022-12-09 19:05:13 +0100
committerOskar Nyberg <oskar@mullvad.net>2022-12-14 10:39:00 +0100
commitb31f28baad2ea8e0b726629831544b3e78e230df (patch)
tree73e35587e751a1b23b79f2f9ee9d8394419944d0
parentfad6a7d2061fe8b2071db5cbeb764b7231d9be72 (diff)
downloadmullvadvpn-b31f28baad2ea8e0b726629831544b3e78e230df.tar.xz
mullvadvpn-b31f28baad2ea8e0b726629831544b3e78e230df.zip
Make tests against installed app run in sequentially
-rw-r--r--gui/package.json2
-rw-r--r--gui/standalone-tests.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/gui/package.json b/gui/package.json
index 7b5ad913bf..2c7f860987 100644
--- a/gui/package.json
+++ b/gui/package.json
@@ -98,7 +98,7 @@
"e2e": "npm run build && npm run e2e:no-build",
"e2e:no-build": "xvfb-maybe -- playwright test mocked",
"e2e:installed": "npm run build && npm run e2e:installed:no-build",
- "e2e:installed:no-build": "xvfb-maybe -- playwright test",
+ "e2e:installed:no-build": "xvfb-maybe -- playwright test --workers 1",
"e2e:update-snapshots": "npm run e2e:no-build -- --update-snapshots",
"develop": "gulp develop",
"test": "cross-env NODE_ENV=test electron-mocha --renderer --reporter spec --require ts-node/register --require \"test/unit/setup/renderer.ts\" \"test/unit/**/*.{ts,tsx}\"",
diff --git a/gui/standalone-tests.ts b/gui/standalone-tests.ts
index 23ba845b98..5df16718da 100644
--- a/gui/standalone-tests.ts
+++ b/gui/standalone-tests.ts
@@ -21,7 +21,7 @@ function main() {
// Tests need to be run sequentially since they interact with the same daemon instance.
// Arguments are forwarded to playwright to make it possible to run specific tests.
- const args = [playwrightBin, 'test', ...process.argv.slice(2)];
+ const args = [playwrightBin, 'test', '--workers', '1', ...process.argv.slice(2)];
const result = spawnSync(nodeBin, args, { encoding: 'utf8', cwd: tmpDir });
removeTmpDir();