Commit 82b7d4b0 authored by Clement Ho's avatar Clement Ho

[skip ci] Add specs

parent b5ef1fd1
...@@ -42,6 +42,21 @@ feature 'Issue Sidebar', feature: true do ...@@ -42,6 +42,21 @@ feature 'Issue Sidebar', feature: true do
expect(page).to have_content(user2.name) expect(page).to have_content(user2.name)
end end
end end
it 'assigns yourself' do
find('.block.assignee .dropdown-menu-toggle').click
find('.assign-yourself .btn-link', text: 'assign yourself').click
wait_for_ajax
find('.block.assignee .edit-link').click
page.within '.dropdown-menu-user' do
expect(page.find('.dropdown-header')).to be_visible
expect(page.find('.dropdown-menu-user-link.is-active')).to have_content(user.name)
end
end
end end
context 'as a allowed user' do context 'as a allowed user' 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