mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
UX: new site setting to define activity metrics displayed on dashboard
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
import { acceptance } from "helpers/qunit-helpers";
|
||||
|
||||
acceptance("Dashboard Next", {
|
||||
loggedIn: true
|
||||
loggedIn: true,
|
||||
settings: {
|
||||
dashboard_general_tab_activity_metrics: "page_view_total_reqs"
|
||||
}
|
||||
});
|
||||
|
||||
QUnit.test("Dashboard", async assert => {
|
||||
@@ -26,7 +29,6 @@ QUnit.test("tabs", async assert => {
|
||||
|
||||
QUnit.test("general tab", async assert => {
|
||||
await visit("/admin");
|
||||
|
||||
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");
|
||||
@@ -46,6 +48,10 @@ QUnit.test("general tab", async assert => {
|
||||
"Houston...",
|
||||
"displays problems"
|
||||
);
|
||||
});
|
||||
|
||||
QUnit.test("general tab - activity metrics", async assert => {
|
||||
await visit("/admin");
|
||||
|
||||
assert.equal(
|
||||
$(".admin-report.page-view-total-reqs .today-count")
|
||||
|
||||
Reference in New Issue
Block a user