about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorBobby Rong <rjl931189261@126.com>2024-03-19 23:59:56 +0800
committerBobby Rong <rjl931189261@126.com>2024-03-19 23:59:56 +0800
commitb5f838a2ca3c874a756a45198b0413dce0d53197 (patch)
treebf41047b9372bbb0c294620923a0153ab720fd53 /nixos
parentc75037bbf9093a2acb617804ee46320d6d1fea5a (diff)
downloadnixlib-b5f838a2ca3c874a756a45198b0413dce0d53197.tar
nixlib-b5f838a2ca3c874a756a45198b0413dce0d53197.tar.gz
nixlib-b5f838a2ca3c874a756a45198b0413dce0d53197.tar.bz2
nixlib-b5f838a2ca3c874a756a45198b0413dce0d53197.tar.lz
nixlib-b5f838a2ca3c874a756a45198b0413dce0d53197.tar.xz
nixlib-b5f838a2ca3c874a756a45198b0413dce0d53197.tar.zst
nixlib-b5f838a2ca3c874a756a45198b0413dce0d53197.zip
nixosTests.budgie: Split run dialog subtest
The original b-c-c subtest is probably flaky, as I didn't actually ensure
the inputbox focused before typing. Instead of another hacky xdotool,
split the run dialog subtest out.

https://hydra.nixos.org/build/253473303/nixlog/37
Diffstat (limited to 'nixos')
-rw-r--r--nixos/tests/budgie.nix13
1 files changed, 7 insertions, 6 deletions
diff --git a/nixos/tests/budgie.nix b/nixos/tests/budgie.nix
index 99804303e397..64a4e65fa7f6 100644
--- a/nixos/tests/budgie.nix
+++ b/nixos/tests/budgie.nix
@@ -61,14 +61,15 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: {
           machine.succeed(f"{cmd} | grep 'XDG_CURRENT_DESKTOP' | grep 'Budgie:GNOME'")
           machine.succeed(f"{cmd} | grep 'BUDGIE_PLUGIN_DATADIR' | grep '${pkgs.budgie.budgie-desktop-with-plugins.pname}'")
 
-      with subtest("Open Budgie Control Center"):
+      with subtest("Open run dialog"):
           machine.send_key("alt-f2")
-          machine.wait_until_succeeds("pgrep -f budgie-run-dialog")
           machine.wait_for_window("budgie-run-dialog")
-          machine.sleep(3)
-          machine.send_chars("Budgie Control Center", delay=0.5)
-          machine.screenshot("quick_search")
-          machine.send_chars("\n")
+          machine.sleep(2)
+          machine.screenshot("run_dialog")
+          machine.send_key("esc")
+
+      with subtest("Open Budgie Control Center"):
+          machine.succeed("${su "budgie-control-center >&2 &"}")
           machine.wait_for_window("Budgie Control Center")
 
       with subtest("Lock the screen"):