From cc16ce5945a58c207f13b67256b58433f1c1f576 Mon Sep 17 00:00:00 2001 From: Tom Fitzhenry Date: Wed, 23 Nov 2022 19:42:21 +1100 Subject: [PATCH] nixos/tests/phosh: add subtest to check the on-screen keyboard --- nixos/tests/phosh.nix | 5 +++++ pkgs/applications/accessibility/squeekboard/default.nix | 3 +++ 2 files changed, 8 insertions(+) diff --git a/nixos/tests/phosh.nix b/nixos/tests/phosh.nix index 6c6357f58096..25bf4848542e 100644 --- a/nixos/tests/phosh.nix +++ b/nixos/tests/phosh.nix @@ -61,5 +61,10 @@ in { phone.wait_for_text("All Apps") phone.screenshot("03launcher") + + with subtest("Check the on-screen keyboard shows"): + phone.send_chars("setting", delay=0.2) + phone.wait_for_text("123") # A button on the OSK + phone.screenshot("04osk") ''; }) diff --git a/pkgs/applications/accessibility/squeekboard/default.nix b/pkgs/applications/accessibility/squeekboard/default.nix index 9cb084a6182b..eca4567984ed 100644 --- a/pkgs/applications/accessibility/squeekboard/default.nix +++ b/pkgs/applications/accessibility/squeekboard/default.nix @@ -16,6 +16,7 @@ , feedbackd , wrapGAppsHook , fetchpatch +, nixosTests }: stdenv.mkDerivation rec { @@ -68,6 +69,8 @@ stdenv.mkDerivation rec { feedbackd ]; + passthru.tests.phosh = nixosTests.phosh; + meta = with lib; { description = "A virtual keyboard supporting Wayland"; homepage = "https://source.puri.sm/Librem5/squeekboard";