diff options
author | Semyon Pupkov <mail@semyonpupkov.com> | 2017-01-04 15:27:29 +0500 |
---|---|---|
committer | Semyon Pupkov <mail@semyonpupkov.com> | 2017-01-04 15:31:16 +0500 |
commit | 65b1ea3ba574c2283fa5a4a744861d8f78a992f8 (patch) | |
tree | b47d61834bb827a3961d6fb9b8a1c30dd29d505c /spec/features/dashboard | |
parent | 115aac77f614a9130aa9bc6ff48aed47339aebfc (diff) | |
download | gitlab-ce-65b1ea3ba574c2283fa5a4a744861d8f78a992f8.tar.gz |
Move dashboard group spinach test to rspec
https://gitlab.com/gitlab-org/gitlab-ce/issues/23036
Diffstat (limited to 'spec/features/dashboard')
-rw-r--r-- | spec/features/dashboard/group_spec.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/spec/features/dashboard/group_spec.rb b/spec/features/dashboard/group_spec.rb new file mode 100644 index 00000000000..d5f8470fab0 --- /dev/null +++ b/spec/features/dashboard/group_spec.rb @@ -0,0 +1,20 @@ +require 'spec_helper' + +RSpec.describe 'Dashboard Group', feature: true do + before do + login_as(:user) + end + + it 'creates new grpup' do + visit dashboard_groups_path + click_link 'New Group' + + fill_in 'group_path', with: 'Samurai' + fill_in 'group_description', with: 'Tokugawa Shogunate' + click_button 'Create group' + + expect(current_path).to eq group_path(Group.find_by(name: 'Samurai')) + expect(page).to have_content('Samurai') + expect(page).to have_content('Tokugawa Shogunate') + end +end |