mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
nixosTests.lomiri-clock-app: Fix OCR
This commit is contained in:
parent
6ffec69d67
commit
ad3c2cb9d1
1 changed files with 8 additions and 2 deletions
|
@ -34,14 +34,20 @@
|
||||||
machine.wait_for_x()
|
machine.wait_for_x()
|
||||||
|
|
||||||
with subtest("lomiri clock launches"):
|
with subtest("lomiri clock launches"):
|
||||||
machine.execute("lomiri-clock-app >&2 &")
|
machine.succeed("lomiri-clock-app >&2 &")
|
||||||
|
machine.sleep(10)
|
||||||
|
machine.send_key("alt-f10")
|
||||||
|
machine.sleep(5)
|
||||||
machine.wait_for_text(r"(clock.ubports|City|Alarms)")
|
machine.wait_for_text(r"(clock.ubports|City|Alarms)")
|
||||||
machine.screenshot("lomiri-clock_open")
|
machine.screenshot("lomiri-clock_open")
|
||||||
|
|
||||||
machine.succeed("pkill -f lomiri-clock-app")
|
machine.succeed("pkill -f lomiri-clock-app")
|
||||||
|
|
||||||
with subtest("lomiri clock localisation works"):
|
with subtest("lomiri clock localisation works"):
|
||||||
machine.execute("env LANG=de_DE.UTF-8 lomiri-clock-app >&2 &")
|
machine.succeed("env LANG=de_DE.UTF-8 lomiri-clock-app >&2 &")
|
||||||
|
machine.sleep(10)
|
||||||
|
machine.send_key("alt-f10")
|
||||||
|
machine.sleep(5)
|
||||||
machine.wait_for_text(r"(Stadt|Weckzeiten)")
|
machine.wait_for_text(r"(Stadt|Weckzeiten)")
|
||||||
machine.screenshot("lomiri-clock_localised")
|
machine.screenshot("lomiri-clock_localised")
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue