diff options
Diffstat (limited to 'actiontext')
-rw-r--r-- | actiontext/lib/action_text/system_test_helper.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/actiontext/lib/action_text/system_test_helper.rb b/actiontext/lib/action_text/system_test_helper.rb index 6c9dcc11a7..7b01c4f0b7 100644 --- a/actiontext/lib/action_text/system_test_helper.rb +++ b/actiontext/lib/action_text/system_test_helper.rb @@ -25,10 +25,7 @@ module ActionText # # <trix-editor input="trix_input_1"></trix-editor> # fill_in_rich_text_area "message[content]", with: "Hello <em>world!</em>" def fill_in_rich_text_area(locator, with:) - page.execute_script(<<~JS, find(:rich_text_area, locator).native, with.to_s) - const [element, html] = arguments; - element.editor.loadHTML(html); - JS + find(:rich_text_area, locator).execute_script("this.editor.loadHTML(arguments[0])", with.to_s) end end end |