From 8d85cbd1bec525a52cddb4413369876292383ee1 Mon Sep 17 00:00:00 2001 From: ibizaman Date: Fri, 11 Jul 2025 10:14:57 +0200 Subject: [PATCH] allow to test login from server too --- test/common.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/test/common.nix b/test/common.nix index b70c568..dedb645 100644 --- a/test/common.nix +++ b/test/common.nix @@ -117,8 +117,16 @@ let script = extraScript args; in lib.optionalString (script != "") script) + + (optionalString (hasAttr "test" nodes.server && hasAttr "login" nodes.server.test) '' + with subtest("Login from server"): + code, logs = server.execute("login_playwright") + server.copy_from_vm("trace") + print(logs) + if code != 0: + raise Exception("login_playwright did not succeed") + '') + (optionalString (hasAttr "test" nodes.client && hasAttr "login" nodes.client.test) '' - with subtest("Login"): + with subtest("Login from client"): code, logs = client.execute("login_playwright") client.copy_from_vm("trace") print(logs)