mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 19:08:33 +08:00
18 lines
478 B
JavaScript
18 lines
478 B
JavaScript
import selectKit from "helpers/select-kit-helper";
|
|
import componentTest from "helpers/component-test";
|
|
moduleForComponent("categories-admin-dropdown", { integration: true });
|
|
|
|
componentTest("default", {
|
|
template: "{{categories-admin-dropdown}}",
|
|
|
|
async test(assert) {
|
|
const subject = selectKit();
|
|
|
|
assert.equal(subject.el().find(".d-icon-bars").length, 1);
|
|
|
|
await subject.expand();
|
|
|
|
assert.equal(subject.rowByValue("create").name(), "New Category");
|
|
}
|
|
});
|