Commit 671556c6 authored by Nick Thomas's avatar Nick Thomas

Fix a failing spec in diff_notes_resolve_spec.rb

parent 20a7db44
......@@ -194,12 +194,12 @@ feature 'Diff notes resolve', feature: true, js: true do
context 'multiple notes' do
before do
create(:diff_note_on_merge_request, project: project, noteable: merge_request)
visit_merge_request
end
it 'does not mark discussion as resolved when resolving single note' do
page.within '.diff-content .note' do
page.first '.diff-content .note' do
first('.line-resolve-btn').click
sleep 1
expect(first('.line-resolve-btn')['data-original-title']).to eq("Resolved by #{user.name}")
end
......@@ -212,7 +212,9 @@ feature 'Diff notes resolve', feature: true, js: true do
it 'resolves discussion' do
page.all('.note').each do |note|
note.find('.line-resolve-btn').click
note.all('.line-resolve-btn').each do |button|
button.click
end
end
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