diff options
author | Jan Hrnko <jan.hrnko@satoshilabs.com> | 2019-11-06 16:38:26 +0100 |
---|---|---|
committer | Jan Hrnko <jan.hrnko@satoshilabs.com> | 2019-11-06 16:38:26 +0100 |
commit | 8920cbc8aabd292c7a7838b9497e36d8d4f4588b (patch) | |
tree | 7bc927a78cfcb7ea6afe20ea237234aacc043b29 /nixos/tests/signal-desktop.nix | |
parent | 4ffdd43d2da6917b16238cd5754ec233d5e66fef (diff) |
nixos/signal-desktop: port test to python
Diffstat (limited to 'nixos/tests/signal-desktop.nix')
-rw-r--r-- | nixos/tests/signal-desktop.nix | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/nixos/tests/signal-desktop.nix b/nixos/tests/signal-desktop.nix index 605b9c3e1301b..c746d46dc5505 100644 --- a/nixos/tests/signal-desktop.nix +++ b/nixos/tests/signal-desktop.nix @@ -1,4 +1,4 @@ -import ./make-test.nix ({ pkgs, ...} : +import ./make-test-python.nix ({ pkgs, ...} : { name = "signal-desktop"; @@ -24,14 +24,14 @@ import ./make-test.nix ({ pkgs, ...} : testScript = { nodes, ... }: let user = nodes.machine.config.users.users.alice; in '' - startAll; - $machine->waitForX; + start_all() + machine.wait_for_x() # 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 - $machine->waitForText(qr/Link your phone to Signal Desktop/); - $machine->screenshot("signal_desktop"); + machine.wait_for_text("Link your phone to Signal Desktop") + machine.screenshot("signal_desktop") ''; }) |