@@ -154,7 +154,7 @@ describe("Input general interaction", () => {
154
154
assert . equal ( suggestionsScrollable , true , "The suggestions popup is scrolalble" ) ;
155
155
156
156
// close suggestions
157
- input . keys ( "Enter" ) ;
157
+ input . keys ( "Enter" ) ;
158
158
} ) ;
159
159
160
160
it ( "handles suggestions" , ( ) => {
@@ -293,7 +293,19 @@ describe("Input general interaction", () => {
293
293
const firstListItem = respPopover . $ ( "ui5-list" ) . $ ( "ui5-li-suggestion-item" ) ;
294
294
295
295
assert . ok ( respPopover . isDisplayedInViewport ( ) , "The popover is visible" ) ;
296
- assert . ok ( firstListItem . getHTML ( ) . indexOf ( EXPTECTED_TEXT ) !== - 1 , "The suggestions is highlighted." )
296
+ assert . ok ( firstListItem . getHTML ( ) . indexOf ( EXPTECTED_TEXT ) !== - 1 , "The suggestions is highlighted." ) ;
297
+ } ) ;
298
+
299
+ it ( "Doesn't remove value on number type input even if locale specific delimiter/multiple delimiters" , ( ) => {
300
+ const input = browser . $ ( "#input-number2" ) ;
301
+
302
+ input . click ( ) ;
303
+ input . keys ( "1.22.33" ) ;
304
+ input . keys ( "Tab" ) ;
305
+
306
+ browser . pause ( 500 ) ;
307
+
308
+ assert . strictEqual ( parseFloat ( input . getProperty ( "value" ) ) , 1.22 , "Value is not lost" ) ;
297
309
} ) ;
298
310
299
311
it ( "fires suggestion-item-preview" , ( ) => {
@@ -308,7 +320,7 @@ describe("Input general interaction", () => {
308
320
inputItemPreview . keys ( "c" ) ;
309
321
310
322
inputItemPreview . keys ( "ArrowDown" ) ;
311
-
323
+
312
324
// assert
313
325
const staticAreaItemClassName = browser . getStaticAreaItemClassName ( "#inputPreview2" ) ;
314
326
const inputPopover = browser . $ ( `.${ staticAreaItemClassName } ` ) . shadow$ ( "ui5-responsive-popover" ) ;
@@ -326,4 +338,4 @@ describe("Input general interaction", () => {
326
338
assert . notOk ( inputPopover . isDisplayedInViewport ( ) , "The inpuit popover is closed as it lost the focus." ) ;
327
339
assert . ok ( helpPopover . isDisplayedInViewport ( ) , "The help popover remains open as the focus is within." ) ;
328
340
} ) ;
329
- } ) ;
341
+ } ) ;
0 commit comments