From 9f0b85bf2683ef0825018c7b754c23369a513956 Mon Sep 17 00:00:00 2001 From: Bryce Johnson Date: Mon, 19 Jun 2017 14:59:17 -0400 Subject: Revert to using links instead of buttons in Issuable Index tabs. --- spec/javascripts/filtered_search/filtered_search_manager_spec.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'spec') 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: { -- cgit v1.2.1 From 929502174d99c5d2b1ccd633b0a8db91ace0e73c Mon Sep 17 00:00:00 2001 From: Eric Eastwood Date: Wed, 21 Jun 2017 14:45:50 -0500 Subject: Add feature spec for dashboard state filter tabs --- spec/features/dashboard/issues_spec.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'spec') 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 -- cgit v1.2.1