Sha256: b30d4a6dc9efa3cc0a2b00b5b1ae6dada2308bedf27a684e8c97058e97f7745c

Contents?: true

Size: 423 Bytes

Versions: 21

Compression:

Stored size: 423 Bytes

Contents

module TextEditorHelpers
  # Basecamp trix uses hidden input to populate its editor
  def fill_in_trix_editor(id, value)
    find(:xpath, "//*[@id='#{id}']", visible: false).set(value)
  end

  # A simplified version of the helper, requires JavaScript, and will end up
  # having <div>value</div> in the trix-saved content, but that is normal
  def fill_trix_editor(with:)
    find("trix-editor").click.set(with)
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
renalware-core-2.0.16 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.15 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.14 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.13 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.12 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.11 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.9 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.8 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.7 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.5 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.4 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.3 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.2 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.1 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.0 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.0.pre.rc13 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.0.pre.rc11 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.0.pre.rc10 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.0.pre.rc9 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.0.pre.rc8 lib/test_support/text_editor_helpers.rb