summaryrefslogtreecommitdiff
path: root/spec/features/groups
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2018-10-06 18:05:14 +0000
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2018-10-06 18:05:14 +0000
commit75b2c9bf6f5529bf198fef92903ad27836487ca6 (patch)
tree2c5d9b4d5abe82538a449ffbf889eac07d67573d /spec/features/groups
parent4c351e17eefb0f24979084219521f0426620a244 (diff)
downloadgitlab-ce-75b2c9bf6f5529bf198fef92903ad27836487ca6.tar.gz
Fix invalid parent path on group settings page
Diffstat (limited to 'spec/features/groups')
-rw-r--r--spec/features/groups/group_settings_spec.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/features/groups/group_settings_spec.rb b/spec/features/groups/group_settings_spec.rb
index 59254ecc982..08fd9f8af2a 100644
--- a/spec/features/groups/group_settings_spec.rb
+++ b/spec/features/groups/group_settings_spec.rb
@@ -98,6 +98,22 @@ describe 'Edit group settings' do
end
end
+ describe 'edit group path' do
+ it 'has a root URL label for top-level group' do
+ visit edit_group_path(group)
+
+ expect(find(:css, '.group-root-path').text).to eq(root_url)
+ end
+
+ it 'has a parent group URL label for a subgroup group', :postgresql do
+ subgroup = create(:group, parent: group)
+
+ visit edit_group_path(subgroup)
+
+ expect(find(:css, '.group-root-path').text).to eq(group_url(subgroup.parent) + '/')
+ end
+ end
+
def update_path(new_group_path)
visit edit_group_path(group)