Sha256: 5e94cc3aa50b87d9e0a24e4e48b1fdf4819cbf32fcc4a456c3a268a4d92b8602
Contents?: true
Size: 1.46 KB
Versions: 30
Compression:
Stored size: 1.46 KB
Contents
require "rails_helper" # create a new post type def create_post_type visit "#{cama_root_relative_path}/admin/settings/post_types" expect(page).to have_content('Post') expect(page).to have_content('Page') within("#post_type_form") do fill_in 'post_type_name', :with => 'Test cat' fill_in 'post_type_slug', :with => 'test-content' fill_in 'post_type_description', :with => 'test-content descri' check("Manage Multiple Categories") click_button 'Submit' end end describe "the Content Groups", js: true do init_site it "create new content group" do admin_sign_in create_post_type expect(page).to have_css('.alert-success') end it "edit content type" do admin_sign_in create_post_type visit "#{cama_root_relative_path}/admin/settings/post_types" within '#admin_content' do all("table .btn-default").last.click end within("#post_type_form") do expect(page).to have_checked_field("Manage Multiple Categories") fill_in 'post_type_name', :with => 'Test cat updated' fill_in 'post_type_slug', :with => 'test-content' click_button 'Submit' end expect(page).to have_css('.alert-success') end it "delete content type" do admin_sign_in create_post_type visit "#{cama_root_relative_path}/admin/settings/post_types" within '#admin_content' do all("table .btn-danger").last.click end confirm_dialog expect(page).to have_css('.alert-success') end end
Version data entries
30 entries across 30 versions & 2 rubygems