nixosTests.lomiri-calculator-app: Use wait_for_window

Presumably because IceWM's bar was removed, it can't find the localised window title anymore.

Use wait_for_window to look for the title, since the app doesn't really have OCRable localised elements.
Unfortunate, because wait_for_window can randomly fail to execute and end the test, but what can you do...
This commit is contained in:
OPNA2608 2025-12-13 00:41:12 +01:00
commit 104a2a7738

View file

@ -39,7 +39,7 @@
machine.sleep(10)
machine.send_key("alt-f10")
machine.sleep(5)
machine.wait_for_text("Calculator")
machine.wait_for_window("Calculator")
machine.screenshot("lomiri-calculator")
with subtest("lomiri calculator works"):
@ -63,7 +63,7 @@
machine.sleep(10)
machine.send_key("alt-f10")
machine.sleep(5)
machine.wait_for_text("Rechner")
machine.wait_for_window("Rechner")
machine.screenshot("lomiri-calculator_localised")
# History of previous run should have loaded