diff options
author | Bobby Rong <rjl931189261@126.com> | 2023-03-07 23:16:33 +0800 |
---|---|---|
committer | Bobby Rong <rjl931189261@126.com> | 2023-03-07 23:39:22 +0800 |
commit | 2768866261ee21659edc6427f66d5b5b0f613752 (patch) | |
tree | abb9b17866a71ffcafa26b00a0234bff04c849a8 /nixos/tests/pantheon.nix | |
parent | 15ada3ac044e169d601929e493077dee17b8f65b (diff) |
nixosTests.pantheon: ensure the password box is focused when login
Sometimes it is not focused for some reasons.
Diffstat (limited to 'nixos/tests/pantheon.nix')
-rw-r--r-- | nixos/tests/pantheon.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nixos/tests/pantheon.nix b/nixos/tests/pantheon.nix index 0773fc0472aa3..0b920c7a6d5f4 100644 --- a/nixos/tests/pantheon.nix +++ b/nixos/tests/pantheon.nix @@ -15,6 +15,7 @@ import ./make-test-python.nix ({ pkgs, lib, ...} : services.xserver.enable = true; services.xserver.desktopManager.pantheon.enable = true; + environment.systemPackages = [ pkgs.xdotool ]; }; enableOCR = true; @@ -29,6 +30,10 @@ import ./make-test-python.nix ({ pkgs, lib, ...} : machine.wait_for_text("${user.description}") # OCR was struggling with this one. # machine.wait_for_text("${bob.description}") + # Ensure the password box is focused by clicking it. + # Workaround for https://github.com/NixOS/nixpkgs/issues/211366. + machine.succeed("XAUTHORITY=/var/lib/lightdm/.Xauthority DISPLAY=:0 xdotool mousemove 512 505 click 1") + machine.sleep(2) machine.screenshot("elementary_greeter_lightdm") with subtest("Login with elementary-greeter"): |