Sha256: adf7b0a3505b7c4f899b140e7e5ae66a5d59a4738d311ffff83d35528fafaf2b
Contents?: true
Size: 1.39 KB
Versions: 3
Compression:
Stored size: 1.39 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' find('#select_assign_group').find("option[value='PostType_Post,2']").click 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 page.driver.browser.switch_to.alert.accept expect(page).to have_css('.alert-success') end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
camaleon_cms-2.3.6 | spec/features/custom_fields_spec.rb |
camaleon_cms-2.3.5 | spec/features/custom_fields_spec.rb |
camaleon_cms-2.3.4 | spec/features/custom_fields_spec.rb |