Skip to content

Commit

Permalink
CI/REF: Try to fix typing-out avocado unit test on macOS CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kernc committed Jan 6, 2024
1 parent 8874330 commit f617d11
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions efck/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
'''
Expand Down

0 comments on commit f617d11

Please sign in to comment.