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