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
This commit is contained in:
Bobby Rong 2024-03-19 23:59:56 +08:00
parent c75037bbf9
commit b5f838a2ca
No known key found for this signature in database

View File

@ -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"):