summaryrefslogtreecommitdiffstats
path: root/nixos/tests/zoom-us.nix
blob: a8a6a3f2f9ea23b6a625cd0a810bf2c39e171922 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ hostPkgs, lib, ... }:
{
  name = "zoom-us";

  nodes.machine =
    { pkgs, ... }:
    {
      imports = [ ./common/x11.nix ];
      programs.zoom-us.enable = true;
    };

  testScript = ''
    machine.succeed("which zoom")  # fail early if this is missing
    machine.wait_for_x()
    machine.execute("zoom >&2 &")
    machine.wait_for_window("Zoom Workplace")
    machine.sleep(20)
    machine.wait_for_window("Zoom Workplace")
  '';
}