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.104 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.103 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.102 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.101 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.100 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.99 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.98 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.97 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.96 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.95 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.94 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.93 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.92 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.91 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.90 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.89 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.88 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.87 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.86 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.85 lib/test_support/text_editor_helpers.rb