Sha256: 0e5c32db4b0cc32f01bc0e9bc840830200ab433d0fd1c3d3be0c891de147dbcb
Contents?: true
Size: 1.36 KB
Versions: 34
Compression:
Stored size: 1.36 KB
Contents
require "rails_helper" describe "the Custom Fields", js: true do login_success it "Custom fields list" do admin_sign_in visit "#{cama_root_relative_path}/admin/settings/custom_fields" within '#admin_content' do click_link "Add Field Group" end # new custom field within '#cama_custom_field_form' do fill_in "custom_field_group_name", with: 'Test name' fill_in "custom_field_group_description", with: 'Test name description' page.execute_script('$("#select_assign_group").val("PostType_Post,2")') all('#content-items-default a').each do |link| link.click end wait_for_ajax first('button[type="submit"]').click end expect(page).to have_css('.alert-success') # update within '#edit_custom_field_group' do fill_in "custom_field_group_name", with: 'Test updated' first('button[type="submit"]').click end within '#sortable-fields' do expect(page).to have_content('Untitled Text Box') end expect(page).to have_css('.alert-success') expect(page).to have_content('Test updated') end it "delete custom field" do admin_sign_in visit "#{cama_root_relative_path}/admin/settings/custom_fields" 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
34 entries across 34 versions & 1 rubygems