diff options
author | Kai Harries <kai.harries@posteo.de> | 2020-09-13 18:29:13 +0200 |
---|---|---|
committer | Kai Harries <kai.harries@posteo.de> | 2020-09-13 19:28:51 +0200 |
commit | ddd23d679074bebd107b628a4bb689f996889f5c (patch) | |
tree | c7c0292561d038d38e3916a883dcc7b633c8972b | |
parent | 7849d114789b88ce68dc87d7dadd315b3cdb3140 (diff) | |
download | nixpkgs-ddd23d679074bebd107b628a4bb689f996889f5c.tar nixpkgs-ddd23d679074bebd107b628a4bb689f996889f5c.tar.gz nixpkgs-ddd23d679074bebd107b628a4bb689f996889f5c.tar.bz2 nixpkgs-ddd23d679074bebd107b628a4bb689f996889f5c.tar.lz nixpkgs-ddd23d679074bebd107b628a4bb689f996889f5c.tar.xz nixpkgs-ddd23d679074bebd107b628a4bb689f996889f5c.tar.zst nixpkgs-ddd23d679074bebd107b628a4bb689f996889f5c.zip |
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
-rw-r--r-- | nixos/tests/signal-desktop.nix | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/nixos/tests/signal-desktop.nix b/nixos/tests/signal-desktop.nix index e4b830e9e23..65ae49a267d 100644 --- a/nixos/tests/signal-desktop.nix +++ b/nixos/tests/signal-desktop.nix @@ -31,8 +31,13 @@ import ./make-test-python.nix ({ pkgs, ...} : # start signal desktop machine.execute("su - alice -c signal-desktop &") - # wait for the "Link your phone to Signal Desktop" message - machine.wait_for_text("Link your phone to Signal Desktop") + # Wait for the Signal window to appear. Since usually the tests + # 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") ''; }) |