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:
parent
0bc1bd9de1
commit
6dc61c8c21
2 changed files with 6 additions and 6 deletions
|
|
@ -100,7 +100,7 @@ pkgs.testers.runNixOSTest {
|
|||
authentik.wait_until_succeeds("curl -fL http://localhost:9000/if/flow/initial-setup/ >&2")
|
||||
|
||||
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.screenshot("1_rendered_frontend")
|
||||
|
||||
|
|
@ -118,7 +118,7 @@ pkgs.testers.runNixOSTest {
|
|||
machine.screenshot("2_initial_setup_successful")
|
||||
|
||||
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.screenshot("3_rendered_admin_interface")
|
||||
machine.succeed("su - alice -c 'xdotool click 1' >&2")
|
||||
|
|
@ -129,7 +129,7 @@ pkgs.testers.runNixOSTest {
|
|||
machine.screenshot("4_correct_version_in_admin_interface")
|
||||
|
||||
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.screenshot("5_nginx_proxies_requests")
|
||||
'';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue