summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authorBobby Rong <rjl931189261@126.com>2023-01-21 23:23:51 +0800
committerBobby Rong <rjl931189261@126.com>2023-01-22 20:45:30 +0800
commit009cdb01c71c5ffefcf9d831f1dec7e0cb0a6627 (patch)
tree0b7346ddb71f6cce9b6fd06b8e324f6f5d478cae /nixos/tests
parent5461c2c4b7e753af7ac2e2b202ecfb105852f244 (diff)
downloadnixpkgs-009cdb01c71c5ffefcf9d831f1dec7e0cb0a6627.tar
nixpkgs-009cdb01c71c5ffefcf9d831f1dec7e0cb0a6627.tar.gz
nixpkgs-009cdb01c71c5ffefcf9d831f1dec7e0cb0a6627.tar.bz2
nixpkgs-009cdb01c71c5ffefcf9d831f1dec7e0cb0a6627.tar.lz
nixpkgs-009cdb01c71c5ffefcf9d831f1dec7e0cb0a6627.tar.xz
nixpkgs-009cdb01c71c5ffefcf9d831f1dec7e0cb0a6627.tar.zst
nixpkgs-009cdb01c71c5ffefcf9d831f1dec7e0cb0a6627.zip
nixosTests.pantheon: ensure switchboard starts
I noticed this is something that can be easily broken during libsoup3 migration.
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/pantheon.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/nixos/tests/pantheon.nix b/nixos/tests/pantheon.nix
index 7594c239e9b..d24d9a92c0a 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")