nixos/signal-desktop: port test to python
This commit is contained in:
parent
4ffdd43d2d
commit
8920cbc8aa
1 changed files with 6 additions and 6 deletions
|
@ -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")
|
||||
'';
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue