Project

General

Profile

Feature #34703 » 0002-Fix-to-change-the-shortcut-key-according-to-the-OS.patch

Mizuki ISHIKAWA, 2021-03-18 01:49

View differences:

test/system/copy_to_clipboard_test.rb
# Paste the value copied to the clipboard into the textarea to get and test
first('.icon-edit').click
find('textarea#issue_notes').send_keys([:control, 'v'])
find('textarea#issue_notes').send_keys([modifier_key, 'v'])
assert find('textarea#issue_notes').value.end_with?('/issues/1')
end
......
# Paste the value copied to the clipboard into the textarea to get and test
first('.icon-edit').click
find('textarea#issue_notes').send_keys([:control, 'v'])
find('textarea#issue_notes').send_keys([modifier_key, 'v'])
assert find('textarea#issue_notes').value.end_with?('/issues/1#note-2')
end
private
def modifier_key
modifier = osx? ? "command" : "control"
modifier.to_sym
end
end
(9-9/9)