summary refs log tree commit diff
path: root/nixos/tests/chromium.nix
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2016-11-09 09:41:10 +0100
committeraszlig <aszlig@redmoonstudios.org>2016-11-09 09:41:10 +0100
commit4e7eb75a79a48b0d7068f1949f8c7c42553181d7 (patch)
treedf4b1cef97a4efd6b5aef2c5a11523c3069a08d3 /nixos/tests/chromium.nix
parent6f8a72bbff0dcdf78df96ad366f52956bcc5c7e7 (diff)
downloadnixpkgs-4e7eb75a79a48b0d7068f1949f8c7c42553181d7.tar
nixpkgs-4e7eb75a79a48b0d7068f1949f8c7c42553181d7.tar.gz
nixpkgs-4e7eb75a79a48b0d7068f1949f8c7c42553181d7.tar.bz2
nixpkgs-4e7eb75a79a48b0d7068f1949f8c7c42553181d7.tar.lz
nixpkgs-4e7eb75a79a48b0d7068f1949f8c7c42553181d7.tar.xz
nixpkgs-4e7eb75a79a48b0d7068f1949f8c7c42553181d7.tar.zst
nixpkgs-4e7eb75a79a48b0d7068f1949f8c7c42553181d7.zip
nixos/tests/chromium: Fix popup detection
Sometimes it happens that the "Type to search or enter a URL to
navigate" popup doesn't show, but all we need to know at this time is
whether Chromium has finished starting up.

So checking for the "startup done" page is a better option here.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'nixos/tests/chromium.nix')
-rw-r--r--nixos/tests/chromium.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/tests/chromium.nix b/nixos/tests/chromium.nix
index 9a6414f81c3..55b1fb5a722 100644
--- a/nixos/tests/chromium.nix
+++ b/nixos/tests/chromium.nix
@@ -118,7 +118,7 @@ mapAttrs (channel: chromiumPkg: makeTest rec {
       "ulimit -c unlimited; ".
       "chromium $args \"$url\" & disown"
     );
-    $machine->waitForText(qr/Type to search or enter a URL to navigate/);
+    $machine->waitForText(qr/startup done/);
     $machine->waitUntilSucceeds("${xdo "check-startup" ''
       search --sync --onlyvisible --name "startup done"
       # close first start help popup