at master 975 B view raw
1{ lib, ... }: 2{ 3 name = "archi"; 4 meta.maintainers = with lib.maintainers; [ paumr ]; 5 6 nodes.machine = 7 { pkgs, ... }: 8 { 9 imports = [ 10 ./common/x11.nix 11 ]; 12 13 environment.systemPackages = with pkgs; [ archi ]; 14 }; 15 16 enableOCR = true; 17 18 testScript = '' 19 machine.wait_for_x() 20 21 with subtest("createEmptyModel via CLI"): 22 machine.succeed("Archi -application com.archimatetool.commandline.app -consoleLog -nosplash --createEmptyModel --saveModel smoke.archimate") 23 machine.copy_from_vm("smoke.archimate", "") 24 25 with subtest("UI smoketest"): 26 machine.succeed("DISPLAY=:0 Archi --createEmptyModel >&2 &") 27 machine.wait_for_window("Archi") 28 29 # wait till main UI is open 30 # since OCR seems to be buggy wait_for_text was replaced by sleep, issue: #302965 31 # machine.wait_for_text("Welcome to Archi") 32 machine.sleep(20) 33 34 machine.screenshot("welcome-screen") 35 ''; 36}