Commit 4384222b authored by Connor Shea's avatar Connor Shea

Add test for jumping between discussions and unhiding toggled discussions.

parent 41007f6d
...@@ -292,6 +292,24 @@ feature 'Diff notes resolve', feature: true, js: true do ...@@ -292,6 +292,24 @@ feature 'Diff notes resolve', feature: true, js: true do
expect(holder).to have_selector('.discussion-next-btn') expect(holder).to have_selector('.discussion-next-btn')
end end
end end
it 'displays next discussion even if hidden' do
page.all('.note-discussion').each do |discussion|
page.within discussion do
click_link 'Toggle discussion'
end
end
page.within('.issuable-discussion #notes') do
expect(page).not_to have_selector('.btn', text: 'Resolve discussion')
end
page.within '.line-resolve-all-container' do
page.find('.discussion-next-btn').click
end
expect(find('.discussion-with-resolve-btn')).to have_selector('.btn', text: 'Resolve discussion')
end
end end
context 'changes tab' do context 'changes tab' do
......
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