mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-14 05:29:20 +03:00
signal-desktop: fix test
Test was broken because network is not available during sandboxed test run and therefore the expected text was never shown. ZHF: #97479
This commit is contained in:
parent
7849d11478
commit
ddd23d6790
1 changed files with 7 additions and 2 deletions
|
@ -31,8 +31,13 @@ import ./make-test-python.nix ({ pkgs, ...} :
|
||||||
# start signal desktop
|
# start signal desktop
|
||||||
machine.execute("su - alice -c signal-desktop &")
|
machine.execute("su - alice -c signal-desktop &")
|
||||||
|
|
||||||
# wait for the "Link your phone to Signal Desktop" message
|
# Wait for the Signal window to appear. Since usually the tests
|
||||||
machine.wait_for_text("Link your phone to Signal Desktop")
|
# are run sandboxed and therfore with no internet, we can not wait
|
||||||
|
# for the message "Link your phone ...". Nor should we wait for
|
||||||
|
# the "Failed to connect to server" message, because when manually
|
||||||
|
# running this test it will be not sandboxed.
|
||||||
|
machine.wait_for_text("Signal")
|
||||||
|
machine.wait_for_text("File Edit View Window Help")
|
||||||
machine.screenshot("signal_desktop")
|
machine.screenshot("signal_desktop")
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue