@@ -201,6 +201,26 @@ moduleFor(
201
201
this . assertValue ( 'hola' , 'Value is used' ) ;
202
202
}
203
203
204
+ [ '@test GH18211 input checked attribute, without a value, works with the action helper' ] ( ) {
205
+ this . render ( `<input type="checkbox" checked {{action "someAction"}}>` , { actions : { someAction ( ) { } } } ) ;
206
+ this . assertPropertyHasValue ( 'checked' , true ) ;
207
+ }
208
+
209
+ [ '@test GH18211 input checked attribute, with a value, works with the action helper' ] ( ) {
210
+ this . render ( `<input type="checkbox" checked={{true}} {{action "someAction"}}>` , { actions : { someAction ( ) { } } } ) ;
211
+ this . assertPropertyHasValue ( 'checked' , true ) ;
212
+ }
213
+
214
+ [ '@test GH18211 input checked attribute, without a value, works with attributes with values' ] ( ) {
215
+ this . render ( `<input type="checkbox" checked click={{action "someAction"}}>` , { actions : { someAction ( ) { } } } ) ;
216
+ this . assertPropertyHasValue ( 'checked' , true ) ;
217
+ }
218
+
219
+ [ '@test GH18211 input checked attribute, without a value, works with event attributes' ] ( ) {
220
+ this . render ( `<input type="checkbox" checked onclick={{action "someAction"}}>` , { actions : { someAction ( ) { } } } ) ;
221
+ this . assertPropertyHasValue ( 'checked' , true ) ;
222
+ }
223
+
204
224
// private helpers and assertions
205
225
setDOMValue ( value ) {
206
226
this . inputElement ( ) . value = value ;
0 commit comments