From 3d4b962c678b4f669130fe78a6e8e5ca302effd0 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Wed, 27 Apr 2022 17:50:12 +0200 Subject: [PATCH] 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. --- nixos/tests/custom-ca.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/tests/custom-ca.nix b/nixos/tests/custom-ca.nix index 91d80dc0dea..8e91bd3eead 100644 --- a/nixos/tests/custom-ca.nix +++ b/nixos/tests/custom-ca.nix @@ -168,6 +168,8 @@ let "alice", f"{command} https://good.example.com >&2 &" ) 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.screenshot("good${browser}") execute_as("alice", "xdotool key ctrl+w") # close tab