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.84 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.83 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.82 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.81 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.80 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.79 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.78 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.77 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.76 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.75 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.74 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.73 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.72 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.71 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.70 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.69 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.68 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.67 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.64 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.63 lib/test_support/text_editor_helpers.rb