diff --git a/nixos/tests/virtualbox.nix b/nixos/tests/virtualbox.nix index 06efb034c086..818e3b8a88a0 100644 --- a/nixos/tests/virtualbox.nix +++ b/nixos/tests/virtualbox.nix @@ -364,7 +364,9 @@ in mapAttrs mkVBoxTest { simple-gui = '' createVM_simple; $machine->succeed(ru "VirtualBox &"); - $machine->waitForWindow(qr/Oracle VM VirtualBox Manager/); + $machine->waitUntilSucceeds( + ru "xprop -name 'Oracle VM VirtualBox Manager'" + ); $machine->sleep(5); $machine->screenshot("gui_manager_started"); $machine->sendKeys("ret");