tests/lomiri: Only enable greeter in greeter test
To test a scenario where only the greeter portion is being enabled, not the whole DE.
This commit is contained in:
parent
d14f6e5986
commit
23e40c0ca4
@ -72,11 +72,13 @@ in
|
|||||||
inherit description password;
|
inherit description password;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.desktopManager.lomiri.enable = lib.mkForce true;
|
services.xserver.enable = true;
|
||||||
services.displayManager.defaultSession = lib.mkForce "lomiri";
|
services.xserver.windowManager.icewm.enable = true;
|
||||||
|
services.xserver.displayManager.lightdm = {
|
||||||
# Help with OCR
|
enable = true;
|
||||||
fonts.packages = [ pkgs.inconsolata ];
|
greeters.lomiri.enable = true;
|
||||||
|
};
|
||||||
|
services.displayManager.defaultSession = lib.mkForce "none+icewm";
|
||||||
};
|
};
|
||||||
|
|
||||||
enableOCR = true;
|
enableOCR = true;
|
||||||
@ -110,13 +112,8 @@ in
|
|||||||
|
|
||||||
# Login
|
# Login
|
||||||
machine.send_chars("${password}\n")
|
machine.send_chars("${password}\n")
|
||||||
machine.wait_until_succeeds("pgrep -u ${user} -f 'lomiri --mode=full-shell'")
|
machine.wait_for_x()
|
||||||
|
machine.screenshot("session_launched")
|
||||||
# Output rendering from Lomiri has started when it starts printing performance diagnostics
|
|
||||||
machine.wait_for_console_text("Last frame took")
|
|
||||||
# Look for datetime's clock, one of the last elements to load
|
|
||||||
wait_for_text(r"(AM|PM)")
|
|
||||||
machine.screenshot("lomiri_launched")
|
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user