summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOskar Nyberg <oskar@mullvad.net>2023-03-30 16:09:13 +0200
committerOskar Nyberg <oskar@mullvad.net>2023-04-05 14:58:54 +0200
commitcc5d6f7f444a2f4a9899b73c23b0e91191ddbabc (patch)
tree252ef81df472b342833382702132e7c4a7486576
parent27f3ebe261cd38750cfe030e40eee4d4a3306442 (diff)
downloadmullvadvpn-cc5d6f7f444a2f4a9899b73c23b0e91191ddbabc.tar.xz
mullvadvpn-cc5d6f7f444a2f4a9899b73c23b0e91191ddbabc.zip
Make playwright stop after first failure
-rw-r--r--gui/standalone-tests.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/standalone-tests.ts b/gui/standalone-tests.ts
index 296e31d22d..c2572311d4 100644
--- a/gui/standalone-tests.ts
+++ b/gui/standalone-tests.ts
@@ -55,7 +55,7 @@ function runTests(): Promise<number> {
return new Promise((resolve) => {
// 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', '-c', configPath, ...process.argv.slice(2)];
+ const args = [playwrightBin, 'test', '-x', '-c', configPath, ...process.argv.slice(2)];
const proc = spawn(nodeBin, args, { cwd: tmpDir });
proc.stdout.on('data', (data) => console.log(data.toString()));