Basic tests for Et2Select, & fixes for bugs they revealed

This commit is contained in:
nathan
2022-01-07 14:13:38 -07:00
parent 57860e03db
commit fd7e7e2828
5 changed files with 232 additions and 9 deletions

View File

@ -84,8 +84,10 @@ export function inputBasicTests(before : Function, test_value : string, value_se
});
it("no value gives empty string", () =>
{
assert.equal((<Element><unknown>element).querySelector(value_selector).textContent, "");
assert.equal(element.get_value(), "");
// Shows as empty / no value
assert.equal((<Element><unknown>element).querySelector(value_selector).textContent.trim(), "", "Displaying something when there is no value");
// Gives no value
assert.equal(element.get_value(), "", "Value mismatch");
});
it("value out matches value in", async() =>