prevent resolve buttons from being clicked twice triggering a race condition

This commit is contained in:
Mike Greiling 2017-11-01 09:17:09 -05:00
parent 9985406a91
commit 2ea76a4130
No known key found for this signature in database
GPG Key ID: 0303DF507FA67596
1 changed files with 2 additions and 4 deletions

View File

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