File tree 1 file changed +12
-0
lines changed
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -100,4 +100,16 @@ describe("Input general interaction", () => {
100
100
assert . strictEqual ( suggestionsInput . getProperty ( "value" ) , "Condensed" , "First item has been selected" ) ;
101
101
assert . strictEqual ( inputResult . getProperty ( "value" ) , "4" , "suggestionItemSelected event called once" ) ;
102
102
} ) ;
103
+
104
+ it ( "sets empty value to an input" , ( ) => {
105
+ const input1 = browser . findElementDeep ( "#input1" ) ;
106
+ const innerInput = browser . findElementDeep ( "#input1 >>> input" ) ;
107
+
108
+ input1 . setProperty ( "value" , "" ) ;
109
+ input1 . setProperty ( "value" , "aaa" ) ;
110
+ input1 . setProperty ( "value" , "" ) ;
111
+
112
+ assert . strictEqual ( input1 . getProperty ( "value" ) , "" , "Property value should be empty" ) ;
113
+ assert . strictEqual ( innerInput . getProperty ( "value" ) , "" , "Inner's property value should be empty" ) ;
114
+ } ) ;
103
115
} ) ;
You can’t perform that action at this time.
0 commit comments