Commit 2ea76a41 authored by Mike Greiling's avatar Mike Greiling

prevent resolve buttons from being clicked twice triggering a race condition

parent 9985406a
...@@ -241,10 +241,8 @@ feature 'Diff notes resolve', :js do ...@@ -241,10 +241,8 @@ feature 'Diff notes resolve', :js do
end end
it 'resolves discussion' do it 'resolves discussion' do
page.all('.note').each do |note| page.all('.note .line-resolve-btn').each do |button|
note.all('.line-resolve-btn').each do |button| button.click
button.click
end
end end
expect(page).to have_content('Resolved by') expect(page).to have_content('Resolved by')
......
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