2018-04-25 16:28:41 +08:00
|
|
|
import {
|
|
|
|
acceptance
|
|
|
|
}
|
|
|
|
from "helpers/qunit-helpers";
|
|
|
|
|
|
|
|
acceptance("Dashboard Next", {
|
|
|
|
loggedIn: true
|
|
|
|
});
|
|
|
|
|
2018-05-03 21:41:41 +08:00
|
|
|
QUnit.test("Visit dashboard next page", assert => {
|
2018-05-14 13:41:19 +08:00
|
|
|
visit("/admin");
|
2018-04-25 16:28:41 +08:00
|
|
|
|
|
|
|
andThen(() => {
|
|
|
|
assert.ok($('.dashboard-next').length, "has dashboard-next class");
|
2018-05-18 04:44:33 +08:00
|
|
|
|
|
|
|
assert.ok($('.dashboard-mini-chart.signups').length, "has a signups chart");
|
|
|
|
assert.ok($('.dashboard-mini-chart.posts').length, "has a posts chart");
|
|
|
|
assert.ok($('.dashboard-mini-chart.dau_by_mau').length, "has a dau_by_mau chart");
|
|
|
|
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");
|
2018-04-25 16:28:41 +08:00
|
|
|
});
|
|
|
|
});
|