tests: fail tests if playwright cannot login
This commit is contained in:
parent
d5654165ea
commit
4d4399eea5
1 changed files with 4 additions and 4 deletions
|
|
@ -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")
|
||||
'')
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue