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.
This commit is contained in:
Elian Doran 2023-02-20 19:38:39 +02:00 committed by Manuel Bärenz
parent beddcca93f
commit 4c164bc42d

View File

@ -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")