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