Sha256: 8b19873d3276b718ba380860ccbe76ffa7960ef760a0d5e5b43da69a8df9c334
Contents?: true
Size: 326 Bytes
Versions: 15
Compression:
Stored size: 326 Bytes
Contents
module JavascriptHelper # 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 end # Example of use in feature test: fill_in_trix_editor("blog_comment_body_trix_input_blog_comment_#{blog_comment.id}", "some text")
Version data entries
15 entries across 15 versions & 1 rubygems