@@ -252,6 +252,7 @@ public void textFieldDefaultTypeIsText(@Mocked final ModelFormField.TextField te
252252 final RenderableFtl renderableFtl = renderableFtlFormElementsBuilder .textField (Map .of ("session" , httpSession ), textField , true );
253253 assertThat (renderableFtl , MacroCallMatcher .hasName ("renderTextField" ));
254254 assertThat (renderableFtl , MacroCallMatcher .hasParameters (MacroCallParameterMatcher .hasNameAndStringValue ("type" , "text" )));
255+ assertThat (renderableFtl , MacroCallMatcher .hasParameters (MacroCallParameterMatcher .hasNameAndStringValue ("step" , "" )));
255256 }
256257
257258 @ Test
@@ -266,6 +267,7 @@ public void textFieldTypeNumber(@Mocked final ModelFormField.TextField textField
266267 final RenderableFtl renderableFtl = renderableFtlFormElementsBuilder .textField (Map .of ("session" , httpSession ), textField , true );
267268 assertThat (renderableFtl , MacroCallMatcher .hasName ("renderTextField" ));
268269 assertThat (renderableFtl , MacroCallMatcher .hasParameters (MacroCallParameterMatcher .hasNameAndStringValue ("type" , "number" )));
270+ assertThat (renderableFtl , MacroCallMatcher .hasParameters (MacroCallParameterMatcher .hasNameAndStringValue ("step" , "any" )));
269271 }
270272
271273 @ Test
@@ -280,6 +282,7 @@ public void textFieldTypeEmail(@Mocked final ModelFormField.TextField textField)
280282 final RenderableFtl renderableFtl = renderableFtlFormElementsBuilder .textField (Map .of ("session" , httpSession ), textField , true );
281283 assertThat (renderableFtl , MacroCallMatcher .hasName ("renderTextField" ));
282284 assertThat (renderableFtl , MacroCallMatcher .hasParameters (MacroCallParameterMatcher .hasNameAndStringValue ("type" , "email" )));
285+ assertThat (renderableFtl , MacroCallMatcher .hasParameters (MacroCallParameterMatcher .hasNameAndStringValue ("step" , "" )));
283286 }
284287
285288 @ Test
@@ -294,6 +297,7 @@ public void textFieldTypeUrl(@Mocked final ModelFormField.TextField textField) {
294297 final RenderableFtl renderableFtl = renderableFtlFormElementsBuilder .textField (Map .of ("session" , httpSession ), textField , true );
295298 assertThat (renderableFtl , MacroCallMatcher .hasName ("renderTextField" ));
296299 assertThat (renderableFtl , MacroCallMatcher .hasParameters (MacroCallParameterMatcher .hasNameAndStringValue ("type" , "url" )));
300+ assertThat (renderableFtl , MacroCallMatcher .hasParameters (MacroCallParameterMatcher .hasNameAndStringValue ("step" , "" )));
297301 }
298302
299303 @ Test
@@ -308,6 +312,7 @@ public void textFieldTypeTel(@Mocked final ModelFormField.TextField textField) {
308312 final RenderableFtl renderableFtl = renderableFtlFormElementsBuilder .textField (Map .of ("session" , httpSession ), textField , true );
309313 assertThat (renderableFtl , MacroCallMatcher .hasName ("renderTextField" ));
310314 assertThat (renderableFtl , MacroCallMatcher .hasParameters (MacroCallParameterMatcher .hasNameAndStringValue ("type" , "tel" )));
315+ assertThat (renderableFtl , MacroCallMatcher .hasParameters (MacroCallParameterMatcher .hasNameAndStringValue ("step" , "" )));
311316 }
312317
313318 @ Test
0 commit comments