diff options
author | Phil Hughes <me@iamphill.com> | 2017-10-06 16:42:01 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-10-06 18:07:09 +0300 |
commit | 0f366c74131339cb45c8943437fe5b3e68721c75 (patch) | |
tree | 247be2df30143c3ba2a3beb11bf7c6aedc7c4142 /spec/features/dashboard | |
parent | 050548032475458a70005ed3f7ff74211084a423 (diff) |
Fixed default group sort option
Closes #38808
Diffstat (limited to 'spec/features/dashboard')
-rw-r--r-- | spec/features/dashboard/group_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/features/dashboard/group_spec.rb b/spec/features/dashboard/group_spec.rb index 60a16830cdc..3e61fafff69 100644 --- a/spec/features/dashboard/group_spec.rb +++ b/spec/features/dashboard/group_spec.rb @@ -5,6 +5,12 @@ RSpec.describe 'Dashboard Group' do sign_in(create(:user)) end + it 'defaults sort dropdown to last created' do + visit dashboard_groups_path + + expect(page).to have_button('Last created') + end + it 'creates new group', js: true do visit dashboard_groups_path find('.btn-new').trigger('click') |