@@ -33,7 +33,7 @@ def form_with(*, **)
33
33
end
34
34
35
35
assert_dom_equal \
36
- '<form action="/messages" accept-charset="UTF-8" data-remote="true" method="post">' \
36
+ '<form action="/messages" accept-charset="UTF-8" method="post">' \
37
37
'<input type="hidden" name="content" id="trix_input_1" />' \
38
38
'<trix-editor input="trix_input_1" class="trix-content" data-direct-upload-url="http://test.host/rails/active_storage/direct_uploads" data-blob-url-template="http://test.host/rails/active_storage/blobs/redirect/:signed_id/:filename">' \
39
39
"</trix-editor>" \
@@ -47,7 +47,7 @@ def form_with(*, **)
47
47
end
48
48
49
49
assert_dom_equal \
50
- '<form action="/messages" accept-charset="UTF-8" data-remote="true" method="post">' \
50
+ '<form action="/messages" accept-charset="UTF-8" method="post">' \
51
51
'<input type="hidden" name="message[content]" id="message_content_trix_input_message" />' \
52
52
'<trix-editor id="message_content" input="message_content_trix_input_message" class="trix-content" data-direct-upload-url="http://test.host/rails/active_storage/direct_uploads" data-blob-url-template="http://test.host/rails/active_storage/blobs/redirect/:signed_id/:filename">' \
53
53
"</trix-editor>" \
@@ -61,7 +61,7 @@ def form_with(*, **)
61
61
end
62
62
63
63
assert_dom_equal \
64
- '<form action="/messages" accept-charset="UTF-8" data-remote="true" method="post">' \
64
+ '<form action="/messages" accept-charset="UTF-8" method="post">' \
65
65
'<input type="hidden" name="message[content]" id="message_content_trix_input_message" />' \
66
66
'<trix-editor id="message_content" input="message_content_trix_input_message" class="custom-class" data-direct-upload-url="http://test.host/rails/active_storage/direct_uploads" data-blob-url-template="http://test.host/rails/active_storage/blobs/redirect/:signed_id/:filename">' \
67
67
"</trix-editor>" \
@@ -75,7 +75,7 @@ def form_with(*, **)
75
75
end
76
76
77
77
assert_dom_equal \
78
- '<form action="/messages" accept-charset="UTF-8" data-remote="true" method="post">' \
78
+ '<form action="/messages" accept-charset="UTF-8" method="post">' \
79
79
'<input type="hidden" name="message[not_an_attribute]" id="message_not_an_attribute_trix_input_message" />' \
80
80
'<trix-editor id="message_not_an_attribute" input="message_not_an_attribute_trix_input_message" class="trix-content" data-direct-upload-url="http://test.host/rails/active_storage/direct_uploads" data-blob-url-template="http://test.host/rails/active_storage/blobs/redirect/:signed_id/:filename">' \
81
81
"</trix-editor>" \
@@ -89,7 +89,7 @@ def form_with(*, **)
89
89
end
90
90
91
91
assert_dom_equal \
92
- '<form action="/messages" accept-charset="UTF-8" data-remote="true" method="post">' \
92
+ '<form action="/messages" accept-charset="UTF-8" method="post">' \
93
93
'<input type="hidden" name="message[content]" id="trix_input_2" />' \
94
94
'<trix-editor id="message_content" input="trix_input_2" class="trix-content" data-direct-upload-url="http://test.host/rails/active_storage/direct_uploads" data-blob-url-template="http://test.host/rails/active_storage/blobs/redirect/:signed_id/:filename">' \
95
95
"</trix-editor>" \
@@ -103,7 +103,7 @@ def form_with(*, **)
103
103
end
104
104
105
105
assert_dom_equal \
106
- '<form action="/messages" accept-charset="UTF-8" data-remote="true" method="post">' \
106
+ '<form action="/messages" accept-charset="UTF-8" method="post">' \
107
107
'<input type="hidden" name="message[content]" id="message_content_trix_input_message" />' \
108
108
'<trix-editor placeholder="Content" id="message_content" input="message_content_trix_input_message" class="trix-content" data-direct-upload-url="http://test.host/rails/active_storage/direct_uploads" data-blob-url-template="http://test.host/rails/active_storage/blobs/redirect/:signed_id/:filename">' \
109
109
"</trix-editor>" \
@@ -119,7 +119,7 @@ def form_with(*, **)
119
119
end
120
120
121
121
assert_dom_equal \
122
- '<form action="/messages" accept-charset="UTF-8" data-remote="true" method="post">' \
122
+ '<form action="/messages" accept-charset="UTF-8" method="post">' \
123
123
'<input type="hidden" name="message[title]" id="message_title_trix_input_message" />' \
124
124
'<trix-editor placeholder="Story title" id="message_title" input="message_title_trix_input_message" class="trix-content" data-direct-upload-url="http://test.host/rails/active_storage/direct_uploads" data-blob-url-template="http://test.host/rails/active_storage/blobs/redirect/:signed_id/:filename">' \
125
125
"</trix-editor>" \
@@ -133,7 +133,7 @@ def form_with(*, **)
133
133
end
134
134
135
135
assert_dom_equal \
136
- '<form action="/messages" accept-charset="UTF-8" data-remote="true" method="post">' \
136
+ '<form action="/messages" accept-charset="UTF-8" method="post">' \
137
137
'<input type="hidden" name="message[title]" id="message_title_trix_input_message" value="<h1>hello world</h1>" />' \
138
138
'<trix-editor id="message_title" input="message_title_trix_input_message" class="trix-content" data-direct-upload-url="http://test.host/rails/active_storage/direct_uploads" data-blob-url-template="http://test.host/rails/active_storage/blobs/redirect/:signed_id/:filename">' \
139
139
"</trix-editor>" \
@@ -147,7 +147,7 @@ def form_with(*, **)
147
147
end
148
148
149
149
assert_dom_equal \
150
- '<form action="/messages" accept-charset="UTF-8" data-remote="true" method="post">' \
150
+ '<form action="/messages" accept-charset="UTF-8" method="post">' \
151
151
'<input type="hidden" name="message[title]" id="message_title_trix_input_message" form="other_form" />' \
152
152
'<trix-editor id="message_title" input="message_title_trix_input_message" class="trix-content" data-direct-upload-url="http://test.host/rails/active_storage/direct_uploads" data-blob-url-template="http://test.host/rails/active_storage/blobs/redirect/:signed_id/:filename">' \
153
153
"</trix-editor>" \
0 commit comments