diff options
author | Bobby Rong <rjl931189261@126.com> | 2023-10-09 00:04:29 +0800 |
---|---|---|
committer | Bobby Rong <rjl931189261@126.com> | 2023-10-09 00:14:30 +0800 |
commit | 585164f75964115a5ab85521a087574d1824ba9b (patch) | |
tree | a93b22e0a9b71bed718d9272c0fa648e74135e7e /nixos/tests/pantheon.nix | |
parent | fdd898f8f79e8d2f99ed2ab6b3751811ef683242 (diff) |
nixosTests.pantheon: Extend the tests
This help me discover issues when I do manual testing.
Diffstat (limited to 'nixos/tests/pantheon.nix')
-rw-r--r-- | nixos/tests/pantheon.nix | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/nixos/tests/pantheon.nix b/nixos/tests/pantheon.nix index dee6964644c5d..be1351283d99a 100644 --- a/nixos/tests/pantheon.nix +++ b/nixos/tests/pantheon.nix @@ -50,6 +50,20 @@ import ./make-test-python.nix ({ pkgs, lib, ...} : machine.wait_for_window("io.elementary.wingpanel") machine.wait_until_succeeds("pgrep plank") machine.wait_for_window("plank") + machine.wait_until_succeeds("pgrep -f gsd-media-keys") + machine.wait_for_unit("bamfdaemon.service", "${user.name}") + machine.wait_for_unit("io.elementary.files.xdg-desktop-portal.service", "${user.name}") + + with subtest("Open elementary videos"): + machine.execute("su - ${user.name} -c 'DISPLAY=:0 io.elementary.videos >&2 &'") + machine.sleep(2) + machine.wait_for_window("io.elementary.videos") + machine.wait_for_text("No Videos Open") + + with subtest("Open elementary calendar"): + machine.execute("su - ${user.name} -c 'DISPLAY=:0 io.elementary.calendar >&2 &'") + machine.sleep(2) + machine.wait_for_window("io.elementary.calendar") with subtest("Open system settings"): machine.execute("su - ${user.name} -c 'DISPLAY=:0 io.elementary.switchboard >&2 &'") @@ -63,7 +77,9 @@ import ./make-test-python.nix ({ pkgs, lib, ...} : with subtest("Check if gala has ever coredumped"): machine.fail("coredumpctl --json=short | grep gala") - machine.sleep(20) + # So you can see the dock in the below screenshot. + machine.succeed("su - ${user.name} -c 'DISPLAY=:0 xdotool mousemove 450 1000 >&2 &'") + machine.sleep(10) machine.screenshot("screen") ''; }) |