diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-07-20 12:26:25 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-07-20 12:26:25 +0000 |
commit | a09983ae35713f5a2bbb100981116d31ce99826e (patch) | |
tree | 2ee2af7bd104d57086db360a7e6d8c9d5d43667a /spec/features/groups_spec.rb | |
parent | 18c5ab32b738c0b6ecb4d0df3994000482f34bd8 (diff) | |
download | gitlab-ce-a09983ae35713f5a2bbb100981116d31ce99826e.tar.gz |
Add latest changes from gitlab-org/gitlab@13-2-stable-ee
Diffstat (limited to 'spec/features/groups_spec.rb')
-rw-r--r-- | spec/features/groups_spec.rb | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/spec/features/groups_spec.rb b/spec/features/groups_spec.rb index 78a35fe1d3f..8104ff3f987 100644 --- a/spec/features/groups_spec.rb +++ b/spec/features/groups_spec.rb @@ -68,6 +68,35 @@ RSpec.describe 'Group' do end end + describe 'real-time group url validation', :js do + it 'shows a message if group url is available' do + fill_in 'group_path', with: 'az' + wait_for_requests + + expect(page).to have_content('Group path is available') + end + + it 'shows an error if group url is taken' do + fill_in 'group_path', with: user.username + wait_for_requests + + expect(page).to have_content('Group path is already taken') + end + + it 'does not break after an invalid form submit' do + fill_in 'group_name', with: 'MyGroup' + fill_in 'group_path', with: 'z' + click_button 'Create group' + + expect(page).to have_content('Group URL is too short') + + fill_in 'group_path', with: 'az' + wait_for_requests + + expect(page).to have_content('Group path is available') + end + end + describe 'Mattermost team creation' do before do stub_mattermost_setting(enabled: mattermost_enabled) |