2015-04-07 02:14:00 +08:00
|
|
|
import { acceptance } from "helpers/qunit-helpers";
|
|
|
|
acceptance("About");
|
2014-08-12 23:15:32 +08:00
|
|
|
|
2017-06-15 01:57:58 +08:00
|
|
|
QUnit.test("viewing", assert => {
|
2014-08-12 23:15:32 +08:00
|
|
|
visit("/about");
|
2015-03-19 19:22:56 +08:00
|
|
|
andThen(() => {
|
2018-06-15 23:03:24 +08:00
|
|
|
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");
|
2014-08-12 23:15:32 +08:00
|
|
|
});
|
2018-06-15 23:03:24 +08:00
|
|
|
});
|