2019-06-06 04:47:10 -04:00
|
|
|
import selectKit from "helpers/select-kit-helper";
|
2018-06-15 11:03:24 -04:00
|
|
|
import componentTest from "helpers/component-test";
|
|
|
|
moduleForComponent("categories-admin-dropdown", { integration: true });
|
2017-10-19 15:51:08 -04:00
|
|
|
|
2018-06-15 11:03:24 -04:00
|
|
|
componentTest("default", {
|
|
|
|
template: "{{categories-admin-dropdown}}",
|
2017-10-19 15:51:08 -04:00
|
|
|
|
2018-07-24 14:12:09 -04:00
|
|
|
async test(assert) {
|
2017-12-22 07:08:12 -05:00
|
|
|
const subject = selectKit();
|
2017-10-19 15:51:08 -04:00
|
|
|
|
2017-12-22 07:08:12 -05:00
|
|
|
assert.equal(subject.el().find(".d-icon-bars").length, 1);
|
2017-10-19 15:51:08 -04:00
|
|
|
|
2018-07-29 16:51:32 -04:00
|
|
|
await subject.expand();
|
2017-10-19 15:51:08 -04:00
|
|
|
|
2018-07-24 14:12:09 -04:00
|
|
|
assert.equal(subject.rowByValue("create").name(), "New Category");
|
2017-10-19 15:51:08 -04:00
|
|
|
}
|
|
|
|
});
|