checks: use firefox in kiosk mode

I don't know why but this fixes the tests after the `nix flake update`.
This commit is contained in:
Marcel 2026-05-14 23:03:01 +02:00 committed by Maximilian Bosch
parent 0bc1bd9de1
commit 6dc61c8c21
No known key found for this signature in database
2 changed files with 6 additions and 6 deletions

View file

@ -59,7 +59,7 @@ pkgs.testers.runNixOSTest {
authentik.wait_until_succeeds("curl -fL http://localhost:9000/if/flow/initial-setup/ >&2") authentik.wait_until_succeeds("curl -fL http://localhost:9000/if/flow/initial-setup/ >&2")
with subtest("Frontend renders"): with subtest("Frontend renders"):
machine.succeed("su - alice -c 'firefox http://localhost:9000/if/flow/initial-setup/' >&2 &") machine.succeed("su - alice -c 'firefox --kiosk http://localhost:9000/if/flow/initial-setup/' >&2 &")
machine.wait_for_text("Welcome to authentik") machine.wait_for_text("Welcome to authentik")
machine.screenshot("1_rendered_frontend") machine.screenshot("1_rendered_frontend")
@ -77,7 +77,7 @@ pkgs.testers.runNixOSTest {
machine.screenshot("2_initial_setup_successful") machine.screenshot("2_initial_setup_successful")
with subtest("admin settings render and version as expected"): with subtest("admin settings render and version as expected"):
machine.succeed("su - alice -c 'firefox http://localhost:9000/if/admin/' >&2 &") machine.succeed("su - alice -c 'firefox --kiosk http://localhost:9000/if/admin/' >&2 &")
machine.wait_for_text("General system status") machine.wait_for_text("General system status")
machine.screenshot("3_rendered_admin_interface") machine.screenshot("3_rendered_admin_interface")
machine.succeed("su - alice -c 'xdotool click 1' >&2") machine.succeed("su - alice -c 'xdotool click 1' >&2")
@ -88,7 +88,7 @@ pkgs.testers.runNixOSTest {
machine.screenshot("4_correct_version_in_admin_interface") machine.screenshot("4_correct_version_in_admin_interface")
with subtest("nginx proxies to authentik"): with subtest("nginx proxies to authentik"):
machine.succeed("su - alice -c 'firefox http://localhost/' >&2 &") machine.succeed("su - alice -c 'firefox --kiosk http://localhost/' >&2 &")
machine.wait_for_text("authentik") machine.wait_for_text("authentik")
machine.screenshot("5_nginx_proxies_requests") machine.screenshot("5_nginx_proxies_requests")

View file

@ -100,7 +100,7 @@ pkgs.testers.runNixOSTest {
authentik.wait_until_succeeds("curl -fL http://localhost:9000/if/flow/initial-setup/ >&2") authentik.wait_until_succeeds("curl -fL http://localhost:9000/if/flow/initial-setup/ >&2")
with subtest("Frontend renders"): with subtest("Frontend renders"):
machine.succeed("su - alice -c 'firefox http://localhost:9000/if/flow/initial-setup/' >&2 &") machine.succeed("su - alice -c 'firefox --kiosk http://localhost:9000/if/flow/initial-setup/' >&2 &")
machine.wait_for_text("${customWelcome}") machine.wait_for_text("${customWelcome}")
machine.screenshot("1_rendered_frontend") machine.screenshot("1_rendered_frontend")
@ -118,7 +118,7 @@ pkgs.testers.runNixOSTest {
machine.screenshot("2_initial_setup_successful") machine.screenshot("2_initial_setup_successful")
with subtest("admin settings render and version as expected"): with subtest("admin settings render and version as expected"):
machine.succeed("su - alice -c 'firefox http://localhost:9000/if/admin/' >&2 &") machine.succeed("su - alice -c 'firefox --kiosk http://localhost:9000/if/admin/' >&2 &")
machine.wait_for_text("General system status") machine.wait_for_text("General system status")
machine.screenshot("3_rendered_admin_interface") machine.screenshot("3_rendered_admin_interface")
machine.succeed("su - alice -c 'xdotool click 1' >&2") machine.succeed("su - alice -c 'xdotool click 1' >&2")
@ -129,7 +129,7 @@ pkgs.testers.runNixOSTest {
machine.screenshot("4_correct_version_in_admin_interface") machine.screenshot("4_correct_version_in_admin_interface")
with subtest("nginx proxies to authentik"): with subtest("nginx proxies to authentik"):
machine.succeed("su - alice -c 'firefox http://localhost/' >&2 &") machine.succeed("su - alice -c 'firefox --kiosk http://localhost/' >&2 &")
machine.wait_for_text("authentik") machine.wait_for_text("authentik")
machine.screenshot("5_nginx_proxies_requests") machine.screenshot("5_nginx_proxies_requests")
''; '';