nixosTests.pantheon: check for bob description
This commit is contained in:
parent
e15c4e48a2
commit
a60daae733
|
@ -22,18 +22,19 @@ import ./make-test-python.nix ({ pkgs, ...} :
|
||||||
|
|
||||||
testScript = { nodes, ... }: let
|
testScript = { nodes, ... }: let
|
||||||
user = nodes.machine.config.users.users.alice;
|
user = nodes.machine.config.users.users.alice;
|
||||||
|
bob = nodes.machine.config.users.users.bob;
|
||||||
in ''
|
in ''
|
||||||
# Wait for display manager to start
|
# Wait for display manager to start
|
||||||
machine.wait_for_unit("display-manager.service")
|
machine.wait_for_unit("display-manager.service")
|
||||||
|
|
||||||
# Test we can see username in elementary-greeter
|
# Test we can see usernames in elementary-greeter
|
||||||
machine.wait_for_text("${user.description}")
|
machine.wait_for_text("${user.description}")
|
||||||
|
machine.wait_for_text("${bob.description}")
|
||||||
machine.screenshot("elementary_greeter_lightdm")
|
machine.screenshot("elementary_greeter_lightdm")
|
||||||
|
|
||||||
# Log in with elementary-greeter
|
# Log in with elementary-greeter
|
||||||
machine.send_chars("${user.password}\n")
|
machine.send_chars("${user.password}\n")
|
||||||
machine.wait_for_unit("default.target", "${user.name}")
|
machine.wait_for_x()
|
||||||
machine_wait_for_x()
|
|
||||||
machine.wait_for_file("${user.home}/.Xauthority")
|
machine.wait_for_file("${user.home}/.Xauthority")
|
||||||
machine.succeed("xauth merge ${user.home}/.Xauthority")
|
machine.succeed("xauth merge ${user.home}/.Xauthority")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue