nixos/signal-desktop: port test to python
This commit is contained in:
parent
4ffdd43d2d
commit
8920cbc8aa
@ -1,4 +1,4 @@
|
|||||||
import ./make-test.nix ({ pkgs, ...} :
|
import ./make-test-python.nix ({ pkgs, ...} :
|
||||||
|
|
||||||
{
|
{
|
||||||
name = "signal-desktop";
|
name = "signal-desktop";
|
||||||
@ -24,14 +24,14 @@ import ./make-test.nix ({ pkgs, ...} :
|
|||||||
testScript = { nodes, ... }: let
|
testScript = { nodes, ... }: let
|
||||||
user = nodes.machine.config.users.users.alice;
|
user = nodes.machine.config.users.users.alice;
|
||||||
in ''
|
in ''
|
||||||
startAll;
|
start_all()
|
||||||
$machine->waitForX;
|
machine.wait_for_x()
|
||||||
|
|
||||||
# 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 "Link your phone to Signal Desktop" message
|
||||||
$machine->waitForText(qr/Link your phone to Signal Desktop/);
|
machine.wait_for_text("Link your phone to Signal Desktop")
|
||||||
$machine->screenshot("signal_desktop");
|
machine.screenshot("signal_desktop")
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user