mirror of
https://github.com/discourse/discourse.git
synced 2026-08-09 04:28:29 -05: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
@@ -1,12 +1,11 @@
|
||||
import { acceptance } from "helpers/qunit-helpers";
|
||||
acceptance("About");
|
||||
|
||||
QUnit.test("viewing", assert => {
|
||||
visit("/about");
|
||||
andThen(() => {
|
||||
assert.ok($("body.about-page").length, "has body class");
|
||||
assert.ok(exists(".about.admins .user-info"), "has admins");
|
||||
assert.ok(exists(".about.moderators .user-info"), "has moderators");
|
||||
assert.ok(exists(".about.stats tr td"), "has stats");
|
||||
});
|
||||
QUnit.test("viewing", async assert => {
|
||||
await visit("/about");
|
||||
|
||||
assert.ok($("body.about-page").length, "has body class");
|
||||
assert.ok(exists(".about.admins .user-info"), "has admins");
|
||||
assert.ok(exists(".about.moderators .user-info"), "has moderators");
|
||||
assert.ok(exists(".about.stats tr td"), "has stats");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user