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>
This commit is contained in:
aszlig 2016-11-09 09:41:10 +01:00
parent 6f8a72bbff
commit 4e7eb75a79
No known key found for this signature in database
GPG key ID: 1DE8E48E57DB5436

View file

@ -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