Sha256: aadef4149d47681f52263e1f82be184ed016f00abd7505e9d1cf8e76f3d2e466

Contents?: true

Size: 454 Bytes

Versions: 142

Compression:

Stored size: 454 Bytes

Contents

# frozen_string_literal: true

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

142 entries across 142 versions & 1 rubygems

Version Path
renalware-core-2.0.147 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.146 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.145 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.144 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.143 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.142 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.141 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.140 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.139 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.138 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.137 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.136 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.135 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.134 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.133 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.132 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.131 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.130 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.129 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.128 lib/test_support/text_editor_helpers.rb