diff options
author | Bobby Rong <rjl931189261@126.com> | 2024-03-19 23:59:56 +0800 |
---|---|---|
committer | Bobby Rong <rjl931189261@126.com> | 2024-03-19 23:59:56 +0800 |
commit | b5f838a2ca3c874a756a45198b0413dce0d53197 (patch) | |
tree | bf41047b9372bbb0c294620923a0153ab720fd53 /nixos/tests/budgie.nix | |
parent | c75037bbf9093a2acb617804ee46320d6d1fea5a (diff) |
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/tests/budgie.nix')
-rw-r--r-- | nixos/tests/budgie.nix | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/nixos/tests/budgie.nix b/nixos/tests/budgie.nix index 99804303e3977..64a4e65fa7f64 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"): |