diff --git a/nixos/tests/sway.nix b/nixos/tests/sway.nix index d700c63eae52..1e9e146c4b6c 100644 --- a/nixos/tests/sway.nix +++ b/nixos/tests/sway.nix @@ -123,6 +123,13 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: { machine.wait_for_text("You pressed the exit shortcut.") machine.screenshot("sway_exit") + swaymsg("exec swaylock") + machine.wait_until_succeeds("pgrep -x swaylock") + machine.sleep(3) + machine.send_chars("${nodes.machine.config.users.users.alice.password}") + machine.send_key("ret") + machine.wait_until_fails("pgrep -x swaylock") + # Exit Sway and verify process exit status 0: swaymsg("exit", succeed=False) machine.wait_until_fails("pgrep -x sway")