FIX: value-list choices when removing a value

Fixes an issue where choices were broken when removing an item from the value-list component.

Adds test case for this scenario.
This commit is contained in:
Penar Musaraj
2020-02-14 11:21:06 -05:00
parent dafa354d3d
commit 89d9704194
2 changed files with 10 additions and 3 deletions

View File

@ -45,6 +45,14 @@ componentTest("removing a value", {
);
assert.equal(this.values, "osama", "it removes the expected value");
await selectKit().expand();
assert.ok(
find(".select-kit-collection li.select-kit-row span.name")[0]
.innerText === "vinkas",
"it adds the removed value to choices"
);
}
});