1import ./make-test-python.nix ({ pkgs, ...} : {
2 name = "nimdow";
3 meta = with pkgs.lib.maintainers; {
4 maintainers = [ marcusramberg ];
5 };
6
7 nodes.machine = { lib, ... }: {
8 imports = [ ./common/x11.nix ./common/user-account.nix ];
9 test-support.displayManager.auto.user = "alice";
10 services.displayManager.defaultSession = lib.mkForce "none+nimdow";
11 services.xserver.windowManager.nimdow.enable = true;
12 };
13
14 testScript = { ... }: ''
15 with subtest("ensure x starts"):
16 machine.wait_for_x()
17 machine.wait_for_file("/home/alice/.Xauthority")
18 machine.succeed("xauth merge ~alice/.Xauthority")
19
20 with subtest("ensure we can open a new terminal"):
21 machine.send_key("meta_l-ret")
22 machine.wait_for_window(r"alice.*?machine")
23 machine.screenshot("terminal")
24 '';
25})