diff options
author | Douwe Maan <douwe@gitlab.com> | 2018-07-12 14:50:27 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2018-07-12 14:50:27 +0300 |
commit | 2f83794d2b727594676e25e85ada53e33cf5246a (patch) | |
tree | c42d926778e82bd66783f43f2020b656bda80d61 /spec/features/projects | |
parent | 94627fd7e3b4010e12f7a0698494b2c36c4f76ef (diff) | |
parent | 751e1786dfe727c11ddae28e77be6eb88fbfbbf9 (diff) |
Merge branch 'dz-manifest-import' into 'master'
Add manifest import
See merge request gitlab-org/gitlab-ce!20304
Diffstat (limited to 'spec/features/projects')
-rw-r--r-- | spec/features/projects/new_project_spec.rb | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/spec/features/projects/new_project_spec.rb b/spec/features/projects/new_project_spec.rb index df8528e79dd..bbe08ff83ff 100644 --- a/spec/features/projects/new_project_spec.rb +++ b/spec/features/projects/new_project_spec.rb @@ -25,6 +25,22 @@ describe 'New project' do expect(page).to have_link('GitLab export') end + describe 'manifest import option' do + before do + visit new_project_path + + find('#import-project-tab').click + end + + context 'when using postgres', :postgresql do + it { expect(page).to have_link('Manifest file') } + end + + context 'when using mysql', :mysql do + it { expect(page).not_to have_link('Manifest file') } + end + end + context 'Visibility level selector', :js do Gitlab::VisibilityLevel.options.each do |key, level| it "sets selector to #{key}" do @@ -201,5 +217,16 @@ describe 'New project' do expect(current_path).to eq new_import_google_code_path end end + + context 'from manifest file', :postgresql do + before do + first('.import_manifest').click + end + + it 'shows import instructions' do + expect(page).to have_content('Manifest file import') + expect(current_path).to eq new_import_manifest_path + end + end end end |