Skip to content

Commit 1da36b0

Browse files
MapTo0ilhan007
authored andcommitted
chore: add tests for setting empty value to ui5-input (#547)
1 parent a62b471 commit 1da36b0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

packages/main/test/specs/Input.spec.js

+12
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,16 @@ describe("Input general interaction", () => {
100100
assert.strictEqual(suggestionsInput.getProperty("value"), "Condensed", "First item has been selected");
101101
assert.strictEqual(inputResult.getProperty("value"), "4", "suggestionItemSelected event called once");
102102
});
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+
});
103115
});

0 commit comments

Comments
 (0)