diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2017-02-07 17:41:32 -0500 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2017-02-07 20:54:47 -0500 |
commit | 7b16c01dab61975cab6a018e6b82be148a10dd2f (patch) | |
tree | 942bfc3b9eebd1e68a7a61d1e0429b8f2cc17168 /spec/features/issues | |
parent | 9659f7bf83ba2ef0824a2e2c7e9eead42cc56d2f (diff) | |
download | gitlab-ce-7b16c01dab61975cab6a018e6b82be148a10dd2f.tar.gz |
Add tests27756-fix-json-404-response
Diffstat (limited to 'spec/features/issues')
-rw-r--r-- | spec/features/issues/filtered_search/filter_issues_spec.rb | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/spec/features/issues/filtered_search/filter_issues_spec.rb b/spec/features/issues/filtered_search/filter_issues_spec.rb index 3f70a6aa75f..ca47e5ab8a5 100644 --- a/spec/features/issues/filtered_search/filter_issues_spec.rb +++ b/spec/features/issues/filtered_search/filter_issues_spec.rb @@ -801,4 +801,28 @@ describe 'Filter issues', js: true, feature: true do expect(auto_discovery_params).to include('assignee_id' => [user.id.to_s]) end end + + context 'URL has a trailing slash' do + before do + visit "#{namespace_project_issues_path(project.namespace, project)}/" + end + + it 'milestone dropdown loads milestones' do + input_filtered_search("milestone:", submit: false) + sleep 1 + + within('#js-dropdown-milestone') do + expect(page).to have_selector('.filter-dropdown .filter-dropdown-item', count: 2) + end + end + + it 'label dropdown load labels' do + input_filtered_search("label:", submit: false) + sleep 1 + + within('#js-dropdown-label') do + expect(page).to have_selector('.filter-dropdown .filter-dropdown-item', count: 5) + end + end + end end |