DEV: migrate acceptance tests to async await - admin, about, account created (#6111)

This commit is contained in:
Maja Komel
2018-07-19 11:35:10 +02:00
committed by Guo Xiang Tan
parent 4bee7fb458
commit 6aa2eb19d4
9 changed files with 285 additions and 329 deletions

View File

@ -2,10 +2,9 @@ import { acceptance } from "helpers/qunit-helpers";
acceptance("Admin - Users List", { loggedIn: true });
QUnit.test("lists users", assert => {
visit("/admin/users/list/active");
andThen(() => {
assert.ok(exists(".users-list .user"));
assert.ok(!exists(".user:eq(0) .email small"), "escapes email");
});
QUnit.test("lists users", async assert => {
await visit("/admin/users/list/active");
assert.ok(exists(".users-list .user"));
assert.ok(!exists(".user:eq(0) .email small"), "escapes email");
});