Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClement Ho <ClemMakesApps@gmail.com>2017-05-09 01:13:11 +0300
committerClement Ho <ClemMakesApps@gmail.com>2017-05-09 19:12:39 +0300
commita72bc1031b91c7de88711b0fc94cd6e8895ead30 (patch)
tree29a178f0f312a45bc0115a87eae5d6bbfd26e39e /spec/features/issues/form_spec.rb
parentdbbe15e69103e50bca0c6ccf5f94b4871ede7ab7 (diff)
Add spec
Diffstat (limited to 'spec/features/issues/form_spec.rb')
-rw-r--r--spec/features/issues/form_spec.rb16
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'