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")
|
server.copy_from_vm("trace")
|
||||||
except:
|
except:
|
||||||
print("No trace found on server")
|
print("No trace found on server")
|
||||||
# if code != 0:
|
if code != 0:
|
||||||
# raise Exception("login_playwright did not succeed")
|
raise Exception("login_playwright did not succeed")
|
||||||
'')
|
'')
|
||||||
+ (optionalString (hasAttr "test" nodes.client && hasAttr "login" nodes.client.test) ''
|
+ (optionalString (hasAttr "test" nodes.client && hasAttr "login" nodes.client.test) ''
|
||||||
with subtest("Login from client"):
|
with subtest("Login from client"):
|
||||||
|
|
@ -166,8 +166,8 @@ let
|
||||||
client.copy_from_vm("trace")
|
client.copy_from_vm("trace")
|
||||||
except:
|
except:
|
||||||
print("No trace found on client")
|
print("No trace found on client")
|
||||||
# if code != 0:
|
if code != 0:
|
||||||
# raise Exception("login_playwright did not succeed")
|
raise Exception("login_playwright did not succeed")
|
||||||
'')
|
'')
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue