Merge #97922: nixosTests.signal-desktop: fix

This commit is contained in:
Vladimír Čunát 2020-09-20 19:22:42 +02:00
commit cf09899749
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -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")
''; '';
}) })