Unverified Commit c712874d authored by amesgen's avatar amesgen
Browse files

nixos/keepassxc: adapt to new UI details

There now is a "Refresh Hardware Keys" icon since 2.7.7, which we have to skip.
I also needed to add more explicit handling of the intermediate file dialog to
get the test to pass.
parent c8c430ec
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -67,10 +67,21 @@ import ./make-test-python.nix ({ pkgs, ...} :
        # Wait for the enter password screen to appear.
        machine.wait_for_text("/home/alice/foo.kdbx")

        # Click on "Browse" button to select keyfile
        # Click on "I have key file" button to open keyfile dialog
        machine.send_key("tab")
        machine.send_key("tab")
        machine.send_key("tab")
        machine.send_key("ret")

        # Select keyfile
        machine.wait_for_text("Select key file")
        machine.send_chars("/home/alice/foo.keyfile")
        machine.send_key("ret")

        # Open database
        machine.wait_for_text("foo.kdbx \\[Locked] - KeePassXC")
        machine.send_key("ret")

        # Database is unlocked (doesn't have "[Locked]" in the title anymore)
        machine.wait_for_text("foo.kdbx - KeePassXC")
  '';