From f617d11e53ac506b4cd4eccb54865a33b1c3bb08 Mon Sep 17 00:00:00 2001 From: Kernc Date: Sat, 6 Jan 2024 04:54:45 +0100 Subject: [PATCH] CI/REF: Try to fix typing-out avocado unit test on macOS CI --- efck/output.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/efck/output.py b/efck/output.py index c261793..b2fc07c 100644 --- a/efck/output.py +++ b/efck/output.py @@ -117,9 +117,12 @@ def _type_macos(text): set prev_contents to the clipboard set the clipboard to "{}" tell application "System Events" - keystroke "v" using command down + key down {command} + keystroke "v" + key up {command} + delay 0.1 key code 124 -- right arrow clears the selection - delay 0.15 + delay 0.1 end tell set the clipboard to prev_contents '''