Skip to content

Commit 22bab40

Browse files
committed
Update integration test script
1 parent 19a44d3 commit 22bab40

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

nix/checks/website-integration-tests.nix

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,12 @@ pkgs.nixosTest {
5353
''
5454
# wait for service
5555
machine.wait_for_unit("strykeforce-website.service")
56-
machine.wait_until_succeeds("curl -sLf http://localhost:8000/static/2767/main.css")
57-
machine.succeed("curl -sLf http://localhost:8000/static/2767/main.js")
58-
html = machine.succeed("curl -sLf http://localhost:8000/admin/")
59-
assert "<title>Sign in - Wagtail</title>" in html
56+
with subtest("check static files"):
57+
machine.wait_until_succeeds("curl -sLf http://localhost:8000/static/2767/main.css")
58+
machine.succeed("curl -sLf http://localhost:8000/static/2767/main.js")
59+
60+
with subtest("check for login page"):
61+
html = machine.succeed("curl -sLf http://localhost:8000/admin/")
62+
assert "<title>Sign in - Wagtail</title>" in html
6063
'';
6164
}

0 commit comments

Comments
 (0)