Commit 543f82ae authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Add mysql and postgres spec for manifest import button

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent ac07634e
...@@ -23,7 +23,22 @@ describe 'New project' do ...@@ -23,7 +23,22 @@ describe 'New project' do
expect(page).to have_link('Google Code') expect(page).to have_link('Google Code')
expect(page).to have_button('Repo by URL') expect(page).to have_button('Repo by URL')
expect(page).to have_link('GitLab export') 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 end
context 'Visibility level selector', :js do context 'Visibility level selector', :js do
...@@ -203,7 +218,7 @@ describe 'New project' do ...@@ -203,7 +218,7 @@ describe 'New project' do
end end
end end
context 'from manifest file' do context 'from manifest file', :postgresql do
before do before do
first('.import_manifest').click first('.import_manifest').click
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment