diff --git a/src/test/kotlin/test/io/kvision/form/number/NumericInputSpec.kt b/src/test/kotlin/test/io/kvision/form/number/NumericInputSpec.kt index a9be614dc2f..7c6c7727e97 100644 --- a/src/test/kotlin/test/io/kvision/form/number/NumericInputSpec.kt +++ b/src/test/kotlin/test/io/kvision/form/number/NumericInputSpec.kt @@ -34,7 +34,7 @@ class NumericInputSpec : DomSpec { fun render() { run { val root = Root("test", containerType = io.kvision.panel.ContainerType.FIXED) - val ri = NumericInput(12, decimals = 3).apply { + val ri = NumericInput(12, decimals = 3, decimalSeparator = '.').apply { name = "name" id = "idri" disabled = true @@ -42,7 +42,7 @@ class NumericInputSpec : DomSpec { root.add(ri) val element = document.getElementById("test") assertEqualsHtml( - "", + "", element?.innerHTML, "Should render correct numeric input control" ) diff --git a/src/test/kotlin/test/io/kvision/form/number/NumericSpec.kt b/src/test/kotlin/test/io/kvision/form/number/NumericSpec.kt index 2f67ad8f44c..8ab572c49ed 100644 --- a/src/test/kotlin/test/io/kvision/form/number/NumericSpec.kt +++ b/src/test/kotlin/test/io/kvision/form/number/NumericSpec.kt @@ -33,7 +33,7 @@ class NumericSpec : DomSpec { fun render() { run { val root = Root("test", containerType = io.kvision.panel.ContainerType.FIXED) - val numeric = Numeric(12, "name", decimals = 2, label = "Label").apply { + val numeric = Numeric(12, "name", decimals = 2, label = "Label", decimalSeparator = '.').apply { id = "idri" disabled = true } @@ -41,7 +41,7 @@ class NumericSpec : DomSpec { val element = document.getElementById("test") val id = numeric.input.id assertEqualsHtml( - "
", + "
", element?.innerHTML, "Should render correct numeric form control" )