nixos/tests/custom-ca: make more reliable
Midori sometime fails to display the page, even if it's supposedly fully loaded. Reloading with ctrl-r fixes it.
This commit is contained in:
parent
3f676b9804
commit
3d4b962c67
|
@ -168,6 +168,8 @@ let
|
||||||
"alice", f"{command} https://good.example.com >&2 &"
|
"alice", f"{command} https://good.example.com >&2 &"
|
||||||
)
|
)
|
||||||
wait_for_window_as("alice", "${browser}")
|
wait_for_window_as("alice", "${browser}")
|
||||||
|
machine.sleep(4)
|
||||||
|
execute_as("alice", "xdotool key ctrl+r") # reload to be safe
|
||||||
machine.wait_for_text("It works!")
|
machine.wait_for_text("It works!")
|
||||||
machine.screenshot("good${browser}")
|
machine.screenshot("good${browser}")
|
||||||
execute_as("alice", "xdotool key ctrl+w") # close tab
|
execute_as("alice", "xdotool key ctrl+w") # close tab
|
||||||
|
|
Loading…
Reference in a new issue