mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
FIX: improves uncategorized support for category-select-box
This commit is contained in:
@ -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}}',
|
||||
|
||||
|
Reference in New Issue
Block a user