mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
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:
parent
6f8a72bbff
commit
4e7eb75a79
@ -118,7 +118,7 @@ mapAttrs (channel: chromiumPkg: makeTest rec {
|
|||||||
"ulimit -c unlimited; ".
|
"ulimit -c unlimited; ".
|
||||||
"chromium $args \"$url\" & disown"
|
"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" ''
|
$machine->waitUntilSucceeds("${xdo "check-startup" ''
|
||||||
search --sync --onlyvisible --name "startup done"
|
search --sync --onlyvisible --name "startup done"
|
||||||
# close first start help popup
|
# close first start help popup
|
||||||
|
Loading…
Reference in New Issue
Block a user