mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 21:44:41 +08:00
DEV: migrate acceptance tests to async await - admin, about, account created (#6111)
This commit is contained in:

committed by
Guo Xiang Tan

parent
4bee7fb458
commit
6aa2eb19d4
@ -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");
|
||||
});
|
||||
|
Reference in New Issue
Block a user