diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2018-07-10 12:44:37 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2018-07-11 12:22:57 +0300 |
commit | 543f82aeb7da34bad2b34f278c126babe89f9863 (patch) | |
tree | 04796ddd97ef38ccbcecf7e51cfc3c0979e71695 /spec/features/projects/new_project_spec.rb | |
parent | ac07634efacae0a7199c70e26a98c2d9e26f52fe (diff) | |
download | gitlab-ce-543f82aeb7da34bad2b34f278c126babe89f9863.tar.gz |
Add mysql and postgres spec for manifest import button
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'spec/features/projects/new_project_spec.rb')
-rw-r--r-- | spec/features/projects/new_project_spec.rb | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/spec/features/projects/new_project_spec.rb b/spec/features/projects/new_project_spec.rb index 1bbbfec2a4f..bab3c7d653c 100644 --- a/spec/features/projects/new_project_spec.rb +++ b/spec/features/projects/new_project_spec.rb @@ -23,7 +23,22 @@ describe 'New project' do expect(page).to have_link('Google Code') expect(page).to have_button('Repo by URL') expect(page).to have_link('GitLab export') - expect(page).to have_link('Manifest file') + 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 @@ -203,7 +218,7 @@ describe 'New project' do end end - context 'from manifest file' do + context 'from manifest file', :postgresql do before do first('.import_manifest').click end |