mirror of
https://github.com/discourse/discourse.git
synced 2025-06-25 01:30:17 +08:00
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>
This commit is contained in:
@ -7,25 +7,18 @@ acceptance("Dashboard Next", {
|
||||
QUnit.test("Visit dashboard next page", async assert => {
|
||||
await visit("/admin");
|
||||
|
||||
assert.ok($(".dashboard-next").length, "has dashboard-next class");
|
||||
|
||||
assert.ok($(".dashboard-mini-chart.signups").length, "has a signups chart");
|
||||
|
||||
assert.ok($(".dashboard-mini-chart.posts").length, "has a posts chart");
|
||||
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(
|
||||
$(".dashboard-mini-chart.dau_by_mau").length,
|
||||
"has a dau_by_mau chart"
|
||||
exists(".admin-report.daily-engaged-users"),
|
||||
"daily-engaged-users report"
|
||||
);
|
||||
|
||||
assert.ok(
|
||||
$(".dashboard-mini-chart.daily_engaged_users").length,
|
||||
"has a daily_engaged_users chart"
|
||||
);
|
||||
|
||||
assert.ok(
|
||||
$(".dashboard-mini-chart.new_contributors").length,
|
||||
"has a new_contributors chart"
|
||||
exists(".admin-report.new-contributors"),
|
||||
"new-contributors report"
|
||||
);
|
||||
|
||||
assert.equal(
|
||||
|
Reference in New Issue
Block a user