diff options
author | Eric Eastwood <contact@ericeastwood.com> | 2017-06-21 22:45:50 +0300 |
---|---|---|
committer | Eric Eastwood <contact@ericeastwood.com> | 2017-06-21 23:14:37 +0300 |
commit | 929502174d99c5d2b1ccd633b0a8db91ace0e73c (patch) | |
tree | 28a25d7c888f2b8fa9535680b336d0c9c474960c /spec/features/dashboard | |
parent | 9f0b85bf2683ef0825018c7b754c23369a513956 (diff) |
Add feature spec for dashboard state filter tabs
Diffstat (limited to 'spec/features/dashboard')
-rw-r--r-- | spec/features/dashboard/issues_spec.rb | 5 |
1 files changed, 5 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 |