mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
nixos/tests/ringboard: add some slight delays between keypresses
This commit is contained in:
parent
cc660fbc68
commit
4ac0b857fb
1 changed files with 5 additions and 3 deletions
|
|
@ -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!'")
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue