diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-15 15:49:40 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-15 15:49:40 +0000 |
commit | b04b1e12c5847f7d366e08af47115d985b73e185 (patch) | |
tree | 5077e33eedbf1e99b9ef9b87395f9acce844b234 /spec/features | |
parent | a5b9fb9abc2b83304f45392642801b28f52b3f48 (diff) | |
download | gitlab-ce-b04b1e12c5847f7d366e08af47115d985b73e185.tar.gz |
Add latest changes from gitlab-org/gitlab@12-10-stable-ee
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/projects/pages_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/features/projects/pages_spec.rb b/spec/features/projects/pages_spec.rb index f4f70e7efbc..faa2b3c9424 100644 --- a/spec/features/projects/pages_spec.rb +++ b/spec/features/projects/pages_spec.rb @@ -158,6 +158,17 @@ shared_examples 'pages settings editing' do expect(page).to have_content('my.test.domain.com') end + it 'shows validation error if domain is duplicated' do + project.pages_domains.create!(domain: 'my.test.domain.com') + + visit new_project_pages_domain_path(project) + + fill_in 'Domain', with: 'my.test.domain.com' + click_button 'Create New Domain' + + expect(page).to have_content('Domain has already been taken') + end + describe 'with dns verification enabled' do before do stub_application_setting(pages_domain_verification_enabled: true) |