[WIP] select-box-kit refactoring

This commit is contained in:
Joffrey JAFFEUX
2017-10-19 12:51:08 -07:00
committed by GitHub
parent a9f718fe57
commit ae1743c61f
157 changed files with 3262 additions and 2404 deletions

View File

@ -0,0 +1,19 @@
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);
expandSelectBox('.categories-admin-dropdown');
andThen(() => {
assert.equal($selectBox.rowByValue("create").name(), "New Category");
});
}
});