DEV: migrate components tests to async/await

This commit is contained in:
Maja Komel
2018-07-24 20:12:09 +02:00
parent c0992a4d31
commit d16a2c776a
10 changed files with 619 additions and 615 deletions

View File

@ -4,16 +4,14 @@ moduleForComponent("categories-admin-dropdown", { integration: true });
componentTest("default", {
template: "{{categories-admin-dropdown}}",
test(assert) {
async test(assert) {
const subject = selectKit();
assert.equal(subject.el().find(".d-icon-bars").length, 1);
assert.equal(subject.el().find(".d-icon-caret-down").length, 1);
subject.expand();
await subject.expandAwait();
andThen(() => {
assert.equal(subject.rowByValue("create").name(), "New Category");
});
assert.equal(subject.rowByValue("create").name(), "New Category");
}
});