fixes dashboard next spec (#6132)
This commit is contained in:
parent
863de8cb76
commit
9ed4071713
|
@ -165,7 +165,11 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="section-column">
|
<div class="section-column">
|
||||||
{{admin-report dataSourceName="top_referred_topics" reportOptions=topReferredTopicsTopions}}
|
{{admin-report
|
||||||
|
dataSourceName="top_referred_topics"
|
||||||
|
reportOptions=topReferredTopicsTopions
|
||||||
|
startDate=startDate
|
||||||
|
endDate=endDate}}
|
||||||
|
|
||||||
{{admin-report
|
{{admin-report
|
||||||
dataSourceName="trending_search"
|
dataSourceName="trending_search"
|
||||||
|
|
|
@ -4,29 +4,28 @@ acceptance("Dashboard Next", {
|
||||||
loggedIn: true
|
loggedIn: true
|
||||||
});
|
});
|
||||||
|
|
||||||
// TODO: jjaffeux to fix
|
QUnit.test("Visit dashboard next page", async assert => {
|
||||||
// QUnit.test('Visit dashboard next page', async assert => {
|
await visit("/admin");
|
||||||
// await visit('/admin');
|
|
||||||
//
|
assert.ok(exists(".dashboard-next"), "has dashboard-next class");
|
||||||
// assert.ok(exists('.dashboard-next'), 'has dashboard-next class');
|
|
||||||
//
|
assert.ok(exists(".admin-report.signups"), "signups report");
|
||||||
// assert.ok(exists('.admin-report.signups'), 'signups report');
|
assert.ok(exists(".admin-report.posts"), "posts 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.dau-by-mau'), 'dau-by-mau report');
|
assert.ok(
|
||||||
// assert.ok(
|
exists(".admin-report.daily-engaged-users"),
|
||||||
// exists('.admin-report.daily-engaged-users'),
|
"daily-engaged-users report"
|
||||||
// 'daily-engaged-users report'
|
);
|
||||||
// );
|
assert.ok(
|
||||||
// assert.ok(
|
exists(".admin-report.new-contributors"),
|
||||||
// exists('.admin-report.new-contributors'),
|
"new-contributors report"
|
||||||
// 'new-contributors report'
|
);
|
||||||
// );
|
|
||||||
//
|
assert.equal(
|
||||||
// assert.equal(
|
$(".section.dashboard-problems .problem-messages ul li:first-child")
|
||||||
// $('.section.dashboard-problems .problem-messages ul li:first-child')
|
.html()
|
||||||
// .html()
|
.trim(),
|
||||||
// .trim(),
|
"Houston...",
|
||||||
// 'Houston...',
|
"displays problems"
|
||||||
// 'displays problems'
|
);
|
||||||
// );
|
});
|
||||||
// });
|
|
||||||
|
|
Loading…
Reference in New Issue