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.1.1 spec/support/text_editor_helpers.rb
renalware-core-2.1.0 spec/support/text_editor_helpers.rb
renalware-core-2.0.167 spec/support/text_editor_helpers.rb
renalware-core-2.0.166 spec/support/text_editor_helpers.rb
renalware-core-2.0.165 spec/support/text_editor_helpers.rb
renalware-core-2.0.164 spec/support/text_editor_helpers.rb
renalware-core-2.0.163 spec/support/text_editor_helpers.rb
renalware-core-2.0.162 spec/support/text_editor_helpers.rb
renalware-core-2.0.161 spec/support/text_editor_helpers.rb
renalware-core-2.0.160 spec/support/text_editor_helpers.rb
renalware-core-2.0.159 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.158 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.157 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.156 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.155 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.153 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.152 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.151 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.149 lib/test_support/text_editor_helpers.rb
renalware-core-2.0.148 lib/test_support/text_editor_helpers.rb