nixpkgs-suyu/tests/firefox.nix

22 lines
476 B
Nix
Raw Normal View History

{ pkgs, ... }:
{
machine =
{ config, pkgs, ... }:
{ require = [ ./common/x11.nix ];
environment.systemPackages = [ pkgs.firefox ];
};
testScript =
''
$machine->waitForX;
$machine->execute("firefox file://${pkgs.valgrind}/share/doc/valgrind/html/index.html &");
$machine->waitForWindow(/Valgrind.*Shiretoko/);
sleep 30; # wait until Firefox has finished loading the page
$machine->screenshot("screen");
'';
}