diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2022-12-09 19:05:13 +0100 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2022-12-14 10:39:00 +0100 |
| commit | b31f28baad2ea8e0b726629831544b3e78e230df (patch) | |
| tree | 73e35587e751a1b23b79f2f9ee9d8394419944d0 | |
| parent | fad6a7d2061fe8b2071db5cbeb764b7231d9be72 (diff) | |
| download | mullvadvpn-b31f28baad2ea8e0b726629831544b3e78e230df.tar.xz mullvadvpn-b31f28baad2ea8e0b726629831544b3e78e230df.zip | |
Make tests against installed app run in sequentially
| -rw-r--r-- | gui/package.json | 2 | ||||
| -rw-r--r-- | gui/standalone-tests.ts | 2 |
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(); |
