Sha256: 46937eca4340507e3450f7002c70f49d66d2ff5b6cd688359dd9e27b9be3a25f

Contents?: true

Size: 834 Bytes

Versions: 62

Compression:

Stored size: 834 Bytes

Contents

require 'test_helper'

module Workarea
  module Admin
    class ContentEmailsSystemTest < SystemTest
      include Admin::IntegrationTest

      def test_editing_a_content_email
        Content::Email.create!(type: 'test_type', content: 'Test content')

        visit admin.content_emails_path
        click_link('Test Type')

        page.execute_script('$("body", $("iframe.wysihtml-sandbox").contents()).text("FOO BAR BAZ")')
        within '#content-email_form' do
          click_button 'save_content_email'
        end

        assert_equal(admin.content_emails_path, current_path)
        assert(page.has_content?('Success'))

        click_link('Test Type')

        text = page.evaluate_script('$("body", $("iframe.wysihtml-sandbox").contents()).text()')
        assert_equal('FOO BAR BAZ', text)
      end
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-admin-3.5.15 test/system/workarea/admin/content_emails_system_test.rb
workarea-admin-3.4.36 test/system/workarea/admin/content_emails_system_test.rb
workarea-admin-3.5.14 test/system/workarea/admin/content_emails_system_test.rb
workarea-admin-3.4.35 test/system/workarea/admin/content_emails_system_test.rb
workarea-admin-3.5.13 test/system/workarea/admin/content_emails_system_test.rb
workarea-admin-3.4.34 test/system/workarea/admin/content_emails_system_test.rb
workarea-admin-3.5.12 test/system/workarea/admin/content_emails_system_test.rb
workarea-admin-3.4.33 test/system/workarea/admin/content_emails_system_test.rb
workarea-admin-3.5.11 test/system/workarea/admin/content_emails_system_test.rb
workarea-admin-3.5.10 test/system/workarea/admin/content_emails_system_test.rb
workarea-admin-3.4.32 test/system/workarea/admin/content_emails_system_test.rb
workarea-admin-3.5.9 test/system/workarea/admin/content_emails_system_test.rb
workarea-admin-3.4.31 test/system/workarea/admin/content_emails_system_test.rb
workarea-admin-3.5.8 test/system/workarea/admin/content_emails_system_test.rb
workarea-admin-3.4.30 test/system/workarea/admin/content_emails_system_test.rb
workarea-admin-3.5.7 test/system/workarea/admin/content_emails_system_test.rb
workarea-admin-3.4.29 test/system/workarea/admin/content_emails_system_test.rb
workarea-admin-3.5.6 test/system/workarea/admin/content_emails_system_test.rb
workarea-admin-3.4.28 test/system/workarea/admin/content_emails_system_test.rb
workarea-admin-3.5.5 test/system/workarea/admin/content_emails_system_test.rb