summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-10-06 14:42:01 +0100
committerPhil Hughes <me@iamphill.com>2017-10-06 16:07:09 +0100
commit0f366c74131339cb45c8943437fe5b3e68721c75 (patch)
tree247be2df30143c3ba2a3beb11bf7c6aedc7c4142 /spec
parent050548032475458a70005ed3f7ff74211084a423 (diff)
downloadgitlab-ce-0f366c74131339cb45c8943437fe5b3e68721c75.tar.gz
Fixed default group sort optiongroup-sort-dropdown-blank
Closes #38808
Diffstat (limited to 'spec')
-rw-r--r--spec/features/dashboard/group_spec.rb6
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')