aboutsummaryrefslogtreecommitdiffstats
path: root/actiontext/test
diff options
context:
space:
mode:
authorGeorge Claghorn <george@basecamp.com>2019-05-19 01:54:08 -0400
committerGeorge Claghorn <george@basecamp.com>2019-05-19 01:55:53 -0400
commit339be65d669c83fd4c64541a9e82086dc5e64682 (patch)
tree63dd1e3b1d16958cbc0ccd66c64a245b5b95b173 /actiontext/test
parenta0b102999afeec902ac45d1dcaeffcfa6c2ff2a0 (diff)
downloadrails-339be65d669c83fd4c64541a9e82086dc5e64682.tar.gz
rails-339be65d669c83fd4c64541a9e82086dc5e64682.tar.bz2
rails-339be65d669c83fd4c64541a9e82086dc5e64682.zip
Allow filling in the only rich-text area without a locator
Diffstat (limited to 'actiontext/test')
-rw-r--r--actiontext/test/system/system_test_helper_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/actiontext/test/system/system_test_helper_test.rb b/actiontext/test/system/system_test_helper_test.rb
index b00bbafa74..460769c480 100644
--- a/actiontext/test/system/system_test_helper_test.rb
+++ b/actiontext/test/system/system_test_helper_test.rb
@@ -30,4 +30,10 @@ class ActionText::SystemTestHelperTest < ApplicationSystemTestCase
fill_in_rich_text_area "message[content]", with: "Hello world!"
assert_selector :field, "message[content]", with: /Hello world!/, type: "hidden"
end
+
+ test "filling in the first rich-text area" do
+ visit new_message_url
+ fill_in_rich_text_area with: "Hello world!"
+ assert_selector :field, "message[content]", with: /Hello world!/, type: "hidden"
+ end
end