debian-mirror-gitlab/spec/features/projects/new_project_from_template_spec.rb
2021-06-08 01:23:25 +05:30

26 lines
518 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
RSpec.describe 'New project from template', :js do
let(:user) { create(:user) }
before do
sign_in(user)
visit new_project_path
end
context 'create from template' do
before do
page.find('a[href="#create_from_template"]').click
wait_for_requests
end
it 'shows template tabs' do
page.within('#create-from-template-pane') do
expect(page).to have_link('Built-in', href: '#built-in')
end
end
end
end