Added tests for showing sidebar when new issue is saved
This commit is contained in:
parent
e457161498
commit
b602023e95
|
@ -65,6 +65,21 @@ describe 'Issue Boards new issue', feature: true, js: true do
|
||||||
expect(page).to have_content('1')
|
expect(page).to have_content('1')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it 'shows sidebar when creating new issue' do
|
||||||
|
page.within(first('.board')) do
|
||||||
|
find('.board-issue-count-holder .btn').click
|
||||||
|
end
|
||||||
|
|
||||||
|
page.within(first('.board-new-issue-form')) do
|
||||||
|
find('.form-control').set('bug')
|
||||||
|
click_button 'Submit issue'
|
||||||
|
end
|
||||||
|
|
||||||
|
wait_for_vue_resource
|
||||||
|
|
||||||
|
expect(page).to have_selector('.issue-boards-sidebar')
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'unauthorized user' do
|
context 'unauthorized user' do
|
||||||
|
|
|
@ -294,4 +294,18 @@ describe 'Issue Boards', feature: true, js: true do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
context 'subscription' do
|
||||||
|
it 'changes issue subscription' do
|
||||||
|
page.within(first('.board')) do
|
||||||
|
first('.card').click
|
||||||
|
end
|
||||||
|
|
||||||
|
page.within('.subscription') do
|
||||||
|
click_button 'Subscribe'
|
||||||
|
|
||||||
|
expect(page).to have_content("You're receiving notifications because you're subscribed to this thread.")
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue