1import ./make-test.nix ({ pkgs, ... }: {
2 name = "firefox";
3 meta = with pkgs.stdenv.lib.maintainers; {
4 maintainers = [ eelco chaoflow shlevy ];
5 };
6
7 machine =
8 { config, pkgs, ... }:
9
10 { imports = [ ./common/x11.nix ];
11 environment.systemPackages = [ pkgs.firefox ];
12 };
13
14 testScript =
15 ''
16 $machine->waitForX;
17 $machine->execute("firefox file://${pkgs.valgrind.doc}/share/doc/valgrind/html/index.html &");
18 $machine->waitForWindow(qr/Valgrind/);
19 $machine->sleep(40); # wait until Firefox has finished loading the page
20 $machine->screenshot("screen");
21 '';
22
23})