From e8a105385785cb075d284d6cbf2af9ae9cf6d539 Mon Sep 17 00:00:00 2001 From: OPNA2608 Date: Fri, 23 May 2025 13:18:09 +0200 Subject: [PATCH] nixosTests.lomiri-calculator-app: Optimise for OfBorg - Add long sleep before sending math question, to give math library time to load Ideally, we would modify the app to emit a log message when it's actually ready to accept math questions? --- nixos/tests/lomiri-calculator-app.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nixos/tests/lomiri-calculator-app.nix b/nixos/tests/lomiri-calculator-app.nix index 5eb26beef2bb..6fde2aaf4e34 100644 --- a/nixos/tests/lomiri-calculator-app.nix +++ b/nixos/tests/lomiri-calculator-app.nix @@ -43,6 +43,12 @@ machine.screenshot("lomiri-calculator") with subtest("lomiri calculator works"): + # Seems like on slower hardware, we might be using the app too quickly after its startup, with the math library + # not being set up properly yet: + # qml: [LOG]: Unable to calculate formula : "22*16", math.js: TypeError: Cannot call method 'evaluate' of null + # OfBorg aarch64 CI is *incredibly slow*, hence the long duration. + machine.sleep(60) + machine.send_key("tab") # Fix focus machine.send_chars("22*16\n")