diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2023-03-30 16:09:13 +0200 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2023-04-05 14:58:54 +0200 |
| commit | cc5d6f7f444a2f4a9899b73c23b0e91191ddbabc (patch) | |
| tree | 252ef81df472b342833382702132e7c4a7486576 | |
| parent | 27f3ebe261cd38750cfe030e40eee4d4a3306442 (diff) | |
| download | mullvadvpn-cc5d6f7f444a2f4a9899b73c23b0e91191ddbabc.tar.xz mullvadvpn-cc5d6f7f444a2f4a9899b73c23b0e91191ddbabc.zip | |
Make playwright stop after first failure
| -rw-r--r-- | gui/standalone-tests.ts | 2 |
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())); |
