FIX: improves uncategorized support for category-select-box

This commit is contained in:
Joffrey JAFFEUX
2017-08-29 12:48:26 +02:00
committed by GitHub
parent 861dbe3b51
commit f101fec19c
8 changed files with 21 additions and 55 deletions

View File

@ -324,28 +324,6 @@ componentTest('static headerText', {
}
});
componentTest('clearable selection', {
template: '{{select-box value=1 content=content clearable=true}}',
beforeEach() {
this.set("content", [{ id: 1, text: "robin" }, { id: 2, text: "regis" }]);
},
test(assert) {
click(".select-box-header");
andThen(() => {
assert.ok(exists(".select-box-row.is-highlighted"));
assert.equal(find(".select-box-header .current-selection").html().trim(), "robin");
});
click(".select-box-header .clear-selection");
andThen(() => {
assert.notOk(exists(".select-box-row.is-highlighted"));
assert.equal(find(".select-box-header .current-selection").html().trim(), "Select...");
});
}
});
componentTest('supports custom row title', {
template: '{{select-box content=content titleForRow=titleForRow}}',