2018-07-21 06:03:39 -04:00
|
|
|
import { acceptance } from "helpers/qunit-helpers";
|
2018-04-25 04:28:41 -04:00
|
|
|
|
2018-07-21 06:03:39 -04:00
|
|
|
acceptance("Dashboard Next", {
|
2018-04-25 04:28:41 -04:00
|
|
|
loggedIn: true
|
|
|
|
});
|
|
|
|
|
2018-07-21 10:29:58 -04:00
|
|
|
QUnit.test("Visit dashboard next page", async assert => {
|
|
|
|
await visit("/admin");
|
|
|
|
|
|
|
|
assert.ok(exists(".dashboard-next"), "has dashboard-next class");
|
|
|
|
|
|
|
|
assert.ok(exists(".admin-report.signups"), "signups report");
|
|
|
|
assert.ok(exists(".admin-report.posts"), "posts report");
|
|
|
|
assert.ok(exists(".admin-report.dau-by-mau"), "dau-by-mau report");
|
|
|
|
assert.ok(
|
|
|
|
exists(".admin-report.daily-engaged-users"),
|
|
|
|
"daily-engaged-users report"
|
|
|
|
);
|
|
|
|
assert.ok(
|
|
|
|
exists(".admin-report.new-contributors"),
|
|
|
|
"new-contributors report"
|
|
|
|
);
|
|
|
|
|
|
|
|
assert.equal(
|
|
|
|
$(".section.dashboard-problems .problem-messages ul li:first-child")
|
|
|
|
.html()
|
|
|
|
.trim(),
|
|
|
|
"Houston...",
|
|
|
|
"displays problems"
|
|
|
|
);
|
|
|
|
});
|