diff options
| author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-04 15:08:41 +0000 |
|---|---|---|
| committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-04 15:08:41 +0000 |
| commit | 9ebfef6a3cf7184161c454c7667d151396e89137 (patch) | |
| tree | a00337f95d0662c5d4433917ee04172ae82cc2de /spec/features/groups/settings | |
| parent | 8a9cbfa9c56792d8e338c289eb803fb0ebde2083 (diff) | |
| download | gitlab-ce-9ebfef6a3cf7184161c454c7667d151396e89137.tar.gz | |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features/groups/settings')
| -rw-r--r-- | spec/features/groups/settings/repository_spec.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/features/groups/settings/repository_spec.rb b/spec/features/groups/settings/repository_spec.rb index d20303027e5..3c1609a2605 100644 --- a/spec/features/groups/settings/repository_spec.rb +++ b/spec/features/groups/settings/repository_spec.rb @@ -25,4 +25,21 @@ RSpec.describe 'Group Repository settings' do let(:entity_type) { 'group' } end end + + context 'Default initial branch name' do + before do + visit group_settings_repository_path(group) + end + + it 'has the setting section' do + expect(page).to have_css("#js-default-branch-name") + end + + it 'renders the correct setting section content' do + within("#js-default-branch-name") do + expect(page).to have_content("Default initial branch name") + expect(page).to have_content("Set the default name of the initial branch when creating new repositories through the user interface.") + end + end + end end |
