mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 21:50:55 +00:00
21 lines
519 B
Nix
21 lines
519 B
Nix
import ./make-test.nix ({ pkgs, ... }: {
|
|
name = "firefox";
|
|
|
|
machine =
|
|
{ config, pkgs, ... }:
|
|
|
|
{ imports = [ ./common/x11.nix ];
|
|
environment.systemPackages = [ pkgs.firefox ];
|
|
};
|
|
|
|
testScript =
|
|
''
|
|
$machine->waitForX;
|
|
$machine->execute("firefox file://${pkgs.valgrind}/share/doc/valgrind/html/index.html &");
|
|
$machine->waitForWindow(qr/Valgrind/);
|
|
$machine->sleep(40); # wait until Firefox has finished loading the page
|
|
$machine->screenshot("screen");
|
|
'';
|
|
|
|
})
|