diff options
author | Clement Ho <clemmakesapps@gmail.com> | 2017-12-11 12:50:52 +0300 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2017-12-11 12:50:52 +0300 |
commit | 24a9983df03a19bf61e03ee8e29aea97e72efc25 (patch) | |
tree | 98daa9da72b6da532057e686fc4d191ddf0e1f6c /spec/features/merge_requests | |
parent | cb63a754a4a7e4308310f646e88a6e2352856092 (diff) |
Fix image view mode
Diffstat (limited to 'spec/features/merge_requests')
-rw-r--r-- | spec/features/merge_requests/image_diff_notes.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/features/merge_requests/image_diff_notes.rb b/spec/features/merge_requests/image_diff_notes.rb index 3c53b51e330..021c4e03428 100644 --- a/spec/features/merge_requests/image_diff_notes.rb +++ b/spec/features/merge_requests/image_diff_notes.rb @@ -185,6 +185,18 @@ feature 'image diff notes', :js do expect(page).to have_content(diff_note.note) end end + + describe 'image view modes' do + before do + visit project_commit_path(project, '2f63565e7aac07bcdadb654e253078b727143ec4') + end + + it 'resizes image in onion skin view mode' do + find('.view-modes-menu .onion-skin').click + + expect(find('.onion-skin-frame')['style']).to match('width: 228px; height: 240px;') + end + end end def create_image_diff_note |