diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-19 10:33:21 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-19 10:33:21 +0300 |
commit | 36a59d088eca61b834191dacea009677a96c052f (patch) | |
tree | e4f33972dab5d8ef79e3944a9f403035fceea43f /spec/features/groups_spec.rb | |
parent | a1761f15ec2cae7c7f7bbda39a75494add0dfd6f (diff) |
Add latest changes from gitlab-org/gitlab@15-0-stable-eev15.0.0-rc42
Diffstat (limited to 'spec/features/groups_spec.rb')
-rw-r--r-- | spec/features/groups_spec.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/features/groups_spec.rb b/spec/features/groups_spec.rb index 08183badda1..ceb4af03f89 100644 --- a/spec/features/groups_spec.rb +++ b/spec/features/groups_spec.rb @@ -105,6 +105,24 @@ RSpec.describe 'Group' do expect(page).to have_content('Group path is available') end + + context 'when filling in the `Group name` field' do + let_it_be(:group1) { create(:group, :public, path: 'foo-bar') } + let_it_be(:group2) { create(:group, :public, path: 'bar-baz') } + + it 'automatically populates the `Group URL` field' do + fill_in 'Group name', with: 'Foo bar' + # Wait for debounce in app/assets/javascripts/group.js#18 + sleep(1) + fill_in 'Group name', with: 'Bar baz' + # Wait for debounce in app/assets/javascripts/group.js#18 + sleep(1) + + wait_for_requests + + expect(page).to have_field('Group URL', with: 'bar-baz1') + end + end end describe 'Mattermost team creation' do |