discourse/test/javascripts/components/categories-admin-dropdown-test.js.es6

20 lines
512 B
Plaintext
Raw Normal View History

2017-10-20 03:51:08 +08:00
import componentTest from 'helpers/component-test';
moduleForComponent('categories-admin-dropdown', {integration: true});
componentTest('default', {
template: '{{categories-admin-dropdown}}',
test(assert) {
const subject = selectKit();
2017-10-20 03:51:08 +08:00
assert.equal(subject.el().find(".d-icon-bars").length, 1);
assert.equal(subject.el().find(".d-icon-caret-down").length, 1);
2017-10-20 03:51:08 +08:00
subject.expand();
2017-10-20 03:51:08 +08:00
andThen(() => {
assert.equal(subject.rowByValue("create").name(), "New Category");
2017-10-20 03:51:08 +08:00
});
}
});