Commit db65499e authored by Z.J. van de Weg's avatar Z.J. van de Weg

Fix last feature test for project templates

parent 2e6aa4f2
...@@ -26,7 +26,6 @@ class ProjectsController < Projects::ApplicationController ...@@ -26,7 +26,6 @@ class ProjectsController < Projects::ApplicationController
render 'edit' render 'edit'
end end
def create def create
@project = ::Projects::CreateService.new(current_user, project_params).execute @project = ::Projects::CreateService.new(current_user, project_params).execute
......
...@@ -40,8 +40,9 @@ namespace :gitlab do ...@@ -40,8 +40,9 @@ namespace :gitlab do
end end
puts "Waiting for the import to finish" puts "Waiting for the import to finish"
sleep(5) sleep(5)
project = project.reload project.reload
end end
Projects::ImportExport::ExportService.new(project, admin).execute Projects::ImportExport::ExportService.new(project, admin).execute
......
...@@ -11,14 +11,14 @@ feature 'Project' do ...@@ -11,14 +11,14 @@ feature 'Project' do
end end
it "allows creation from templates" do it "allows creation from templates" do
fill_in("project_template_name", with: template.title) page.choose(template.name)
fill_in("project_path", with: template.name) fill_in("project_path", with: template.name)
page.within '#content-body' do page.within '#content-body' do
click_button "Create project" click_button "Create project"
end end
expect(page).to have_content 'Import in progress' expect(page).to have_content 'This project Loading..'
end end
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