1 import ./make-test-python.nix ({ pkgs, lib, ... }: {
2 name = "morph-browser-standalone";
3 meta.maintainers = lib.teams.lomiri.members;
5 nodes.machine = { config, pkgs, ... }: {
10 services.xserver.enable = true;
13 systemPackages = with pkgs.lomiri; [
18 UITK_ICON_THEME = "suru";
22 i18n.supportedLocales = [ "all" ];
24 fonts.packages = with pkgs; [
25 # Intended font & helps with OCR
36 with subtest("morph browser launches"):
37 machine.execute("morph-browser >&2 &")
38 machine.wait_for_text(r"Web Browser|New|sites|Bookmarks")
39 machine.screenshot("morph_open")
41 with subtest("morph browser displays HTML"):
42 machine.send_chars("file://${pkgs.valgrind.doc}/share/doc/valgrind/html/index.html\n")
43 machine.wait_for_text("Valgrind Documentation")
44 machine.screenshot("morph_htmlcontent")
46 machine.succeed("pkill -f morph-browser")
48 with subtest("morph browser localisation works"):
49 machine.execute("env LANG=de_DE.UTF-8 morph-browser >&2 &")
50 machine.wait_for_text(r"Web-Browser|Neuer|Seiten|Lesezeichen")
51 machine.screenshot("morph_localised")