Feature #34703 » 0002-Fix-to-change-the-shortcut-key-according-to-the-OS.patch
| 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
|
||
- « Previous
- 1
- …
- 7
- 8
- 9
- Next »