tests: fail tests if playwright cannot login

This commit is contained in:
ibizaman 2026-05-27 21:40:56 +02:00
parent d5654165ea
commit 4d4399eea5

View file

@ -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")
'')
);