aboutsummaryrefslogtreecommitdiffstats
path: root/actiontext/CHANGELOG.md
diff options
context:
space:
mode:
authorGeorge Claghorn <george@basecamp.com>2019-05-13 12:44:06 -0400
committerGitHub <noreply@github.com>2019-05-13 12:44:06 -0400
commitb2b634137402a82a7dfd60b5646dbd0860a822ca (patch)
tree77d0bd00cc06b58aa08f61e7d5401ac67ab35677 /actiontext/CHANGELOG.md
parent93ef75615e9aec522ee7478689fc6a6ed420814d (diff)
downloadrails-b2b634137402a82a7dfd60b5646dbd0860a822ca.tar.gz
rails-b2b634137402a82a7dfd60b5646dbd0860a822ca.tar.bz2
rails-b2b634137402a82a7dfd60b5646dbd0860a822ca.zip
Add ActionDispatch::SystemTestCase#fill_in_rich_text_area
Diffstat (limited to 'actiontext/CHANGELOG.md')
-rw-r--r--actiontext/CHANGELOG.md18
1 files changed, 18 insertions, 0 deletions
diff --git a/actiontext/CHANGELOG.md b/actiontext/CHANGELOG.md
index b165f8b323..9a314db75c 100644
--- a/actiontext/CHANGELOG.md
+++ b/actiontext/CHANGELOG.md
@@ -1,3 +1,21 @@
+* The `fill_in_rich_text_area` system test helper locates a Trix editor and fills it in with the given HTML:
+
+ ```ruby
+ # <trix-editor id="message_content" ...></trix-editor>
+ fill_in_rich_text_area "message_content", with: "Hello <em>world!</em>"
+
+ # <trix-editor placeholder="Your message here" ...></trix-editor>
+ fill_in_rich_text_area "Your message here", with: "Hello <em>world!</em>"
+
+ # <trix-editor aria-label="Message content" ...></trix-editor>
+ fill_in_rich_text_area "Message content", with: "Hello <em>world!</em>"
+
+ # <input id="trix_input_1" name="message[content]" type="hidden">
+ # <trix-editor input="trix_input_1"></trix-editor>
+ fill_in_rich_text_area "message[content]", with: "Hello <em>world!</em>"
+ ```
+
+ *George Claghorn*
Please check [6-0-stable](https://github.com/rails/rails/blob/6-0-stable/actiontext/CHANGELOG.md) for previous changes.