diff options
author | Bobby Rong <rjl931189261@126.com> | 2023-01-21 23:23:51 +0800 |
---|---|---|
committer | Bobby Rong <rjl931189261@126.com> | 2023-01-22 20:45:30 +0800 |
commit | 009cdb01c71c5ffefcf9d831f1dec7e0cb0a6627 (patch) | |
tree | 0b7346ddb71f6cce9b6fd06b8e324f6f5d478cae /nixos | |
parent | 5461c2c4b7e753af7ac2e2b202ecfb105852f244 (diff) |
nixosTests.pantheon: ensure switchboard starts
I noticed this is something that can be easily broken during libsoup3 migration.
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/tests/pantheon.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nixos/tests/pantheon.nix b/nixos/tests/pantheon.nix index 7594c239e9b3d..d24d9a92c0a66 100644 --- a/nixos/tests/pantheon.nix +++ b/nixos/tests/pantheon.nix @@ -48,6 +48,12 @@ import ./make-test-python.nix ({ pkgs, lib, ...} : machine.wait_until_succeeds("pgrep plank") machine.wait_for_window("plank") + with subtest("Open system settings"): + machine.execute("su - ${user.name} -c 'DISPLAY=:0 io.elementary.switchboard >&2 &'") + # Wait for all plugins to be loaded before we check if the window is still there. + machine.sleep(5) + machine.wait_for_window("io.elementary.switchboard") + with subtest("Open elementary terminal"): machine.execute("su - ${user.name} -c 'DISPLAY=:0 io.elementary.terminal >&2 &'") machine.wait_for_window("io.elementary.terminal") |