1 import ./make-test-python.nix ({ lib, ... }: {
2 name = "breitbandmessung";
3 meta.maintainers = with lib.maintainers; [ b4dm4n ];
5 nodes.machine = { pkgs, ... }: {
7 ./common/user-account.nix
11 # increase screen size to make the whole program visible
12 virtualisation.resolution = { x = 1280; y = 1024; };
14 test-support.displayManager.auto.user = "alice";
16 environment.systemPackages = with pkgs; [ breitbandmessung ];
17 environment.variables.XAUTHORITY = "/home/alice/.Xauthority";
19 # breitbandmessung is unfree
20 nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ "breitbandmessung" ];
27 machine.execute("su - alice -c breitbandmessung >&2 &")
28 machine.wait_for_window("Breitbandmessung")
29 machine.wait_for_text("Breitbandmessung")
30 machine.wait_for_text("Datenschutz")
31 machine.screenshot("breitbandmessung")