diff options
author | Martin Wortschack <mwortschack@gitlab.com> | 2018-10-30 16:23:47 +0000 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2018-10-30 16:23:47 +0000 |
commit | 66e8ecffa0990651e7bac46ac65120f5a98b1749 (patch) | |
tree | 527d4fc5bc0c341ddab80cd9f27ddaca0b822d11 /spec/features/dashboard/group_spec.rb | |
parent | e9814aae809fb057f9126d9574c313fa18836ec0 (diff) | |
download | gitlab-ce-66e8ecffa0990651e7bac46ac65120f5a98b1749.tar.gz |
Resolve "Create new group: Rename form fields and update UI"
Diffstat (limited to 'spec/features/dashboard/group_spec.rb')
-rw-r--r-- | spec/features/dashboard/group_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/features/dashboard/group_spec.rb b/spec/features/dashboard/group_spec.rb index e57fcde8b2c..259f220c68b 100644 --- a/spec/features/dashboard/group_spec.rb +++ b/spec/features/dashboard/group_spec.rb @@ -14,15 +14,15 @@ RSpec.describe 'Dashboard Group' do it 'creates new group', :js do visit dashboard_groups_path find('.btn-success').click - new_path = 'Samurai' + new_name = 'Samurai' new_description = 'Tokugawa Shogunate' - fill_in 'group_path', with: new_path + fill_in 'group_name', with: new_name fill_in 'group_description', with: new_description click_button 'Create group' - expect(current_path).to eq group_path(Group.find_by(name: new_path)) - expect(page).to have_content(new_path) + expect(current_path).to eq group_path(Group.find_by(name: new_name)) + expect(page).to have_content(new_name) expect(page).to have_content(new_description) end end |