BigW Consortium Gitlab

Commit 1899d543 by Stan Hu

Change trigger('click') and trigger('mouseover') -> click

parent 4ab7d2f9
......@@ -54,7 +54,7 @@ feature 'Diff note avatars', js: true do
end
it 'does not render avatar after commenting' do
first('.diff-line-num').trigger('mouseover')
first('.diff-line-num').click
find('.js-add-diff-note-button').click
page.within('.js-discussion-note-form') do
......@@ -157,7 +157,7 @@ feature 'Diff note avatars', js: true do
end
page.within find("[id='#{position.line_code(project.repository)}']") do
find('.diff-notes-collapse').trigger('click')
find('.diff-notes-collapse').click
expect(page).to have_selector('img.js-diff-comment-avatar', count: 3)
expect(find('.diff-comments-more-count')).to have_content '+1'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment