debian-mirror-gitlab/spec/features/projects/new_project_from_template_spec.rb
2023-03-04 22:38:38 +05:30

26 lines
547 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
RSpec.describe 'New project from template', :js, feature_category: :projects 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