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.27 test/system/workarea/admin/content_emails_system_test.rb
workarea-admin-3.5.26 test/system/workarea/admin/content_emails_system_test.rb
workarea-admin-3.4.45 test/system/workarea/admin/content_emails_system_test.rb
workarea-admin-3.5.25 test/system/workarea/admin/content_emails_system_test.rb
workarea-admin-3.5.23 test/system/workarea/admin/content_emails_system_test.rb
workarea-admin-3.4.44 test/system/workarea/admin/content_emails_system_test.rb
workarea-admin-3.5.22 test/system/workarea/admin/content_emails_system_test.rb
workarea-admin-3.4.43 test/system/workarea/admin/content_emails_system_test.rb
workarea-admin-3.5.21 test/system/workarea/admin/content_emails_system_test.rb
workarea-admin-3.4.42 test/system/workarea/admin/content_emails_system_test.rb
workarea-admin-3.5.20 test/system/workarea/admin/content_emails_system_test.rb
workarea-admin-3.4.41 test/system/workarea/admin/content_emails_system_test.rb
workarea-admin-3.5.19 test/system/workarea/admin/content_emails_system_test.rb
workarea-admin-3.4.40 test/system/workarea/admin/content_emails_system_test.rb
workarea-admin-3.5.18 test/system/workarea/admin/content_emails_system_test.rb
workarea-admin-3.4.39 test/system/workarea/admin/content_emails_system_test.rb
workarea-admin-3.5.17 test/system/workarea/admin/content_emails_system_test.rb
workarea-admin-3.4.38 test/system/workarea/admin/content_emails_system_test.rb
workarea-admin-3.5.16 test/system/workarea/admin/content_emails_system_test.rb
workarea-admin-3.4.37 test/system/workarea/admin/content_emails_system_test.rb