spec/features/posts_spec.rb in camaleon_cms-2.3.7.2 vs spec/features/posts_spec.rb in camaleon_cms-2.4.0
- old
+ new
@@ -9,11 +9,10 @@
fill_in 'post_title', :with => 'Test Title'
page.execute_script('$("#form-post .tinymce_textarea").tinymce().setContent("Pants are pretty sweet.")')
page.execute_script('$("#form-post input[name=\'categories[]\']:first").prop("checked", true)')
wait(2)
fill_in 'post_summary', :with => 'test summary'
- fill_in 'post_keywords', :with => 'test keywords'
page.execute_script("$('#form-post input[name=\"tags\"]').val('owen,dota')")
end
click_button 'Create'
expect(page).to have_css('.alert-success')
end
@@ -23,10 +22,9 @@
visit "#{cama_root_relative_path}/admin/post_type/2/posts/#{get_content_attr("post", "id", "last")}/edit"
within("#form-post") do
fill_in 'post_title', :with => 'Test Title changed'
page.execute_script('$("#form-post .tinymce_textarea").tinymce().setContent("Pants are pretty sweet. chaged")')
fill_in 'post_summary', :with => 'test summary changed'
- fill_in 'post_keywords', :with => 'test keywords changed'
end
click_button 'Update'
expect(page).to have_css('.alert-success')
# visit page in frontend
visit "#{get_content_attr("post", "the_path", "last")}"
\ No newline at end of file