From 4d4399eea5b6d1d4498abcce6863ef472fa7bc4b Mon Sep 17 00:00:00 2001 From: ibizaman Date: Wed, 27 May 2026 21:40:56 +0200 Subject: [PATCH] tests: fail tests if playwright cannot login --- test/common.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/common.nix b/test/common.nix index e783b67..08b6b7e 100644 --- a/test/common.nix +++ b/test/common.nix @@ -155,8 +155,8 @@ let server.copy_from_vm("trace") except: print("No trace found on server") - # if code != 0: - # raise Exception("login_playwright did not succeed") + if code != 0: + raise Exception("login_playwright did not succeed") '') + (optionalString (hasAttr "test" nodes.client && hasAttr "login" nodes.client.test) '' with subtest("Login from client"): @@ -166,8 +166,8 @@ let client.copy_from_vm("trace") except: print("No trace found on client") - # if code != 0: - # raise Exception("login_playwright did not succeed") + if code != 0: + raise Exception("login_playwright did not succeed") '') );