diff options
author | Phil Hughes <me@iamphill.com> | 2017-03-01 16:17:26 +0000 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2017-03-03 16:37:28 +0200 |
commit | ed1f110499d8e2aa011e17f1ad8a038e209842fb (patch) | |
tree | 53e18f4c98ab130bd1d8b2364fac1773771505e2 /spec/features | |
parent | b18646040c9b17c69ac66fb687b02450e161808c (diff) | |
download | gitlab-ce-ed1f110499d8e2aa011e17f1ad8a038e209842fb.tar.gz |
Fixes filtering by name reseting archive filter
Previously the search form just wasn't including any params that had previously been set, so when you filtered by name, it would reset all the params & therefore ignoring the archived param
Closes #28007
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/dashboard/archived_projects_spec.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/features/dashboard/archived_projects_spec.rb b/spec/features/dashboard/archived_projects_spec.rb index 038c1641be9..f33bcbb5318 100644 --- a/spec/features/dashboard/archived_projects_spec.rb +++ b/spec/features/dashboard/archived_projects_spec.rb @@ -25,4 +25,19 @@ RSpec.describe 'Dashboard Archived Project', feature: true do expect(page).to have_link(project.name) expect(page).to have_link(archived_project.name) end + + it 'searchs archived projects', :js do + click_button 'Last updated' + click_link 'Show archived projects' + + expect(page).to have_link(project.name) + expect(page).to have_link(archived_project.name) + + fill_in 'project-filter-form-field', with: archived_project.name + + find('#project-filter-form-field').native.send_keys :return + + expect(page).not_to have_link(project.name) + expect(page).to have_link(archived_project.name) + end end |