1 import ./make-test-python.nix ({ pkgs, ... }: {
4 maintainers = pkgs.plotinus.meta.maintainers;
10 { imports = [ ./common/x11.nix ];
11 programs.plotinus.enable = true;
12 environment.systemPackages = [ pkgs.gnome.gnome-calculator pkgs.xdotool ];
17 machine.succeed("gnome-calculator >&2 &")
18 machine.wait_for_window("gnome-calculator")
20 "xdotool search --sync --onlyvisible --class gnome-calculator "
21 + "windowfocus --sync key --clearmodifiers --delay 1 'ctrl+shift+p'"
23 machine.sleep(5) # wait for the popup
24 machine.succeed("xdotool key --delay 100 p r e f e r e n c e s Return")
25 machine.wait_for_window("Preferences")
26 machine.screenshot("screen")