diff options
author | Shinya Maeda <shinya@gitlab.com> | 2017-11-06 23:43:10 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2017-11-06 23:43:10 +0900 |
commit | b4d167a8f78509e241639e560ee1fed545d2dbc1 (patch) | |
tree | ad31164a4fe19d7c3dbc7d9e9f1d3ee6e3e65637 /spec/features/dashboard/group_spec.rb | |
parent | c5377b97968ba9edefe7766dac77cc9fbbaa4e2c (diff) | |
parent | d4ceec9d47a7da5fa17cb6e161ac491e13fcb8bd (diff) | |
download | gitlab-ce-feature/sm/3691-expose-per-project-pipeline-id.tar.gz |
Merge branch 'master' into feature/sm/3691-expose-per-project-pipeline-idfeature/sm/3691-expose-per-project-pipeline-id
Diffstat (limited to 'spec/features/dashboard/group_spec.rb')
-rw-r--r-- | spec/features/dashboard/group_spec.rb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/spec/features/dashboard/group_spec.rb b/spec/features/dashboard/group_spec.rb index 60a16830cdc..1c7932e7964 100644 --- a/spec/features/dashboard/group_spec.rb +++ b/spec/features/dashboard/group_spec.rb @@ -5,9 +5,15 @@ RSpec.describe 'Dashboard Group' do sign_in(create(:user)) end - it 'creates new group', js: true do + it 'defaults sort dropdown to last created' do visit dashboard_groups_path - find('.btn-new').trigger('click') + + expect(page).to have_button('Last created') + end + + it 'creates new group', :js do + visit dashboard_groups_path + find('.btn-new').click new_path = 'Samurai' new_description = 'Tokugawa Shogunate' |