diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-05 13:20:03 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-05 13:20:03 +0300 |
commit | d2612b42b9da6638d70b9d7144f6d427070d042d (patch) | |
tree | ed7de87d4b112cae8a45ba186d717ca9768c7d4e /spec/features/projects | |
parent | d80373b353005e70f44eca8a3bc4a4c5cfbf0e9e (diff) |
Add latest changes from gitlab-org/gitlab@15-1-stable-ee
Diffstat (limited to 'spec/features/projects')
-rw-r--r-- | spec/features/projects/new_project_spec.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/features/projects/new_project_spec.rb b/spec/features/projects/new_project_spec.rb index c323e60bb71..a1e92a79516 100644 --- a/spec/features/projects/new_project_spec.rb +++ b/spec/features/projects/new_project_spec.rb @@ -298,6 +298,20 @@ RSpec.describe 'New project', :js do end end + context 'Import project options without any sources', :js do + before do + stub_application_setting(import_sources: []) + + visit new_project_path + click_link 'Import project' + end + + it 'displays the no import options message' do + expect(page).to have_text s_('ProjectsNew|No import options available') + expect(page).to have_text s_('ProjectsNew|Contact an administrator to enable options for importing your project.') + end + end + context 'Import project options', :js do before do visit new_project_path |