Feature #34703 » 0002-Fix-to-change-the-shortcut-key-according-to-the-OS.patch
| test/system/copy_to_clipboard_test.rb | ||
|---|---|---|
| 36 | 36 | |
| 37 | 37 |
# Paste the value copied to the clipboard into the textarea to get and test |
| 38 | 38 |
first('.icon-edit').click
|
| 39 |
find('textarea#issue_notes').send_keys([:control, 'v'])
|
|
| 39 |
find('textarea#issue_notes').send_keys([modifier_key, 'v'])
|
|
| 40 | 40 |
assert find('textarea#issue_notes').value.end_with?('/issues/1')
|
| 41 | 41 |
end |
| 42 | 42 | |
| ... | ... | |
| 50 | 50 | |
| 51 | 51 |
# Paste the value copied to the clipboard into the textarea to get and test |
| 52 | 52 |
first('.icon-edit').click
|
| 53 |
find('textarea#issue_notes').send_keys([:control, 'v'])
|
|
| 53 |
find('textarea#issue_notes').send_keys([modifier_key, 'v'])
|
|
| 54 | 54 |
assert find('textarea#issue_notes').value.end_with?('/issues/1#note-2')
|
| 55 | 55 |
end |
| 56 | ||
| 57 |
private |
|
| 58 | ||
| 59 |
def modifier_key |
|
| 60 |
modifier = osx? ? "command" : "control" |
|
| 61 |
modifier.to_sym |
|
| 62 |
end |
|
| 56 | 63 |
end |
- « Previous
- 1
- …
- 7
- 8
- 9
- Next »