mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
The NixOS test covers the same use case, but has a correctly set up, actually-graphical environment without the limitations of xvfb-run.
21 lines
440 B
Nix
21 lines
440 B
Nix
{ 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")
|
|
'';
|
|
}
|