BigW Consortium Gitlab

Fix last feature test for project templates

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