diff options
author | Jacob Schatz <jschatz@gitlab.com> | 2017-06-22 02:30:45 +0000 |
---|---|---|
committer | Jacob Schatz <jschatz@gitlab.com> | 2017-06-22 02:30:45 +0000 |
commit | 340b8a10bb184b3a54306d1415d9fa4a6c5fbe7c (patch) | |
tree | 5fcf3f0791b47c43f9997dbf4042a8182c80fdad /spec | |
parent | 759a38d69b1a6c17197560835c62f47c5884decc (diff) | |
parent | 929502174d99c5d2b1ccd633b0a8db91ace0e73c (diff) | |
download | gitlab-ce-340b8a10bb184b3a54306d1415d9fa4a6c5fbe7c.tar.gz |
Merge branch '33833-issue-and-mr-state-tabs-don-t-work-on-dashboard' into 'master'
Resolve "Issue and MR state tabs don't work on dashboard"
Closes #33833
See merge request !12278
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/dashboard/issues_spec.rb | 5 | ||||
-rw-r--r-- | spec/javascripts/filtered_search/filtered_search_manager_spec.js | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/spec/features/dashboard/issues_spec.rb b/spec/features/dashboard/issues_spec.rb index 6f21cfd322d..a57962abbda 100644 --- a/spec/features/dashboard/issues_spec.rb +++ b/spec/features/dashboard/issues_spec.rb @@ -59,6 +59,11 @@ RSpec.describe 'Dashboard Issues', feature: true do expect(page).to have_content(other_issue.title) end + it 'state filter tabs work' do + find('#state-closed').click + expect(page).to have_current_path(issues_dashboard_url(assignee_id: current_user.id, scope: 'all', state: 'closed'), url: true) + end + it_behaves_like "it has an RSS button with current_user's RSS token" it_behaves_like "an autodiscoverable RSS feed with current_user's RSS token" end diff --git a/spec/javascripts/filtered_search/filtered_search_manager_spec.js b/spec/javascripts/filtered_search/filtered_search_manager_spec.js index f67cd356ef1..8d239c9cc3f 100644 --- a/spec/javascripts/filtered_search/filtered_search_manager_spec.js +++ b/spec/javascripts/filtered_search/filtered_search_manager_spec.js @@ -106,6 +106,7 @@ describe('Filtered Search Manager', () => { it('should blur button', () => { const e = { + preventDefault: () => {}, currentTarget: { blur: () => {}, }, @@ -118,6 +119,7 @@ describe('Filtered Search Manager', () => { it('should not call search if there is no state', () => { const e = { + preventDefault: () => {}, currentTarget: { blur: () => {}, }, @@ -129,6 +131,7 @@ describe('Filtered Search Manager', () => { it('should call search when there is state', () => { const e = { + preventDefault: () => {}, currentTarget: { blur: () => {}, dataset: { |