This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/test/javascripts/acceptance/dashboard-next-test.js.es6
Joffrey JAFFEUX 1a78e12f4e
FEATURE: part 2 of dashboard improvements
- moderation tab
- sorting/pagination
- improved third party reports support
- trending charts
- better perf
- many fixes
- refactoring
- new reports

Co-Authored-By: Simon Cossar <scossar@users.noreply.github.com>
2018-07-19 14:33:11 -04:00

32 lines
817 B
JavaScript

import { acceptance } from "helpers/qunit-helpers";
acceptance("Dashboard Next", {
loggedIn: true
});
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"
);
});