diff options
Diffstat (limited to 'spec/features/issues/form_spec.rb')
-rw-r--r-- | spec/features/issues/form_spec.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/features/issues/form_spec.rb b/spec/features/issues/form_spec.rb index 87adce3cddd..7d13690f284 100644 --- a/spec/features/issues/form_spec.rb +++ b/spec/features/issues/form_spec.rb @@ -23,6 +23,22 @@ describe 'New/edit issue', feature: true, js: true do visit new_namespace_project_issue_path(project.namespace, project) end + describe 'single assignee' do + it 'hides assignee after selection' do + click_button 'Unassigned' + + page.within('.dropdown-menu-user') do + click_link user.name + end + + # TODO: Figure out a better way to wait for dropdown CSS hide + # animation to complete + sleep 0.3 + + expect(page.find('.dropdown-menu-user', visible: false)).not_to be_visible + end + end + describe 'multiple assignees' do before do click_button 'Unassigned' |