Add test for jumping between discussions and unhiding toggled discussions.

This commit is contained in:
Connor Shea 2016-08-16 10:17:47 -06:00
parent 41007f6d3c
commit 4384222b38
No known key found for this signature in database
GPG Key ID: 1993299A3C9BE6CF
1 changed files with 18 additions and 0 deletions

View File

@ -292,6 +292,24 @@ feature 'Diff notes resolve', feature: true, js: true do
expect(holder).to have_selector('.discussion-next-btn')
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
context 'changes tab' do