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:
OPNA2608 2024-10-30 14:27:21 +01:00
parent d14f6e5986
commit 23e40c0ca4

View File

@ -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")
''; '';
} }
); );