nixos/tests/ringboard: add some slight delays between keypresses

This commit is contained in:
h7x4 2025-11-16 17:17:56 +09:00
commit 4ac0b857fb
No known key found for this signature in database
GPG key ID: 9F2F7D8250F35146

View file

@ -43,10 +43,12 @@
with subtest("Ensure clipboard is monitored"):
with gedit_running: # type: ignore[union-attr]
machine.send_chars("Hello world!")
machine.send_chars("Hello world!", delay=0.1)
machine.sleep(1)
machine.send_key("ctrl-a")
machine.sleep(1)
machine.send_key("ctrl-c")
machine.wait_for_console_text("Small selection transfer complete")
machine.succeed("su - '${user}' -c 'ringboard search Hello | grep world!'")
machine.wait_until_succeeds("su - '${user}' -c 'journalctl --user -u ringboard-listener.service --grep \'Small selection transfer complete\'''", timeout=60)
machine.succeed("su - '${user}' -c 'ringboard search Hello | grep world!'")
'';
}