diff options
author | Elian Doran <contact@eliandoran.me> | 2023-02-20 19:38:39 +0200 |
---|---|---|
committer | Manuel Bärenz <programming@manuelbaerenz.de> | 2023-02-21 09:29:23 +0100 |
commit | 4c164bc42d56b3932a2a6982c0e92921485fdc16 (patch) | |
tree | eb116633baa0a75bf47d5f9b6fb43819d6adee98 /nixos/tests | |
parent | beddcca93f45929dfafb5891148937a7dbf1926d (diff) |
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.
Diffstat (limited to 'nixos/tests')
-rw-r--r-- | nixos/tests/keepassxc.nix | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/nixos/tests/keepassxc.nix b/nixos/tests/keepassxc.nix index debb469032a62..a4f452412cdf8 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") |