mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
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:
parent
4b65c6834e
commit
104a2a7738
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue