From 4c164bc42d56b3932a2a6982c0e92921485fdc16 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Mon, 20 Feb 2023 19:38:39 +0200 Subject: [PATCH] keepassxc: fix test timeout The test was failing because it was timing out. Turns out it was waiting for `foo.kdbx`, which couldn't be "seen" even if it actually existed (probably some contrast issues with the theme and OCR couldn't find it). Fixed it by delegating the check to the next screen, where the full path to the file is displayed in a bigger size. The test seems to pass. --- nixos/tests/keepassxc.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/nixos/tests/keepassxc.nix b/nixos/tests/keepassxc.nix index debb469032a6..a4f452412cdf 100644 --- a/nixos/tests/keepassxc.nix +++ b/nixos/tests/keepassxc.nix @@ -4,6 +4,7 @@ import ./make-test-python.nix ({ pkgs, ...} : name = "keepassxc"; meta = with pkgs.lib.maintainers; { maintainers = [ turion ]; + timeout = 1800; }; nodes.machine = { ... }: @@ -55,9 +56,12 @@ import ./make-test-python.nix ({ pkgs, ...} : machine.sleep(5) # Regression #163482: keepassxc did not crash machine.succeed("ps -e | grep keepassxc") - machine.wait_for_text("foo.kdbx") + machine.wait_for_text("Open database") machine.send_key("ret") - machine.sleep(1) + + # Wait for the enter password screen to appear. + machine.wait_for_text("/home/alice/foo.kdbx") + # Click on "Browse" button to select keyfile machine.send_key("tab") machine.send_chars("/home/alice/foo.keyfile")