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

20 lines
552 B
Plaintext
Raw Normal View History

2017-10-19 12:51:08 -07:00
import componentTest from 'helpers/component-test';
moduleForComponent('categories-admin-dropdown', {integration: true});
componentTest('default', {
template: '{{categories-admin-dropdown}}',
test(assert) {
const $selectBox = selectBox('.categories-admin-dropdown');
assert.equal($selectBox.el.find(".d-icon-bars").length, 1);
assert.equal($selectBox.el.find(".d-icon-caret-down").length, 1);
2017-11-09 10:57:53 -08:00
expandSelectBoxKit();
2017-10-19 12:51:08 -07:00
andThen(() => {
assert.equal($selectBox.rowByValue("create").name(), "New Category");
});
}
});