mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 01:31:35 +08:00
Revert "Rename all test files from JS -> ES6"
This reverts commit 2abe85b8344de1102c1589a9ac9421a8b296f2b5.
This commit is contained in:
@ -1,35 +0,0 @@
|
||||
import { acceptance } from "helpers/qunit-helpers";
|
||||
|
||||
acceptance("Reports", {
|
||||
loggedIn: true
|
||||
});
|
||||
|
||||
QUnit.test("Visit reports page", async assert => {
|
||||
await visit("/admin/reports");
|
||||
|
||||
assert.equal($(".reports-list .report").length, 1);
|
||||
|
||||
const $report = $(".reports-list .report:first-child");
|
||||
|
||||
assert.equal(
|
||||
$report
|
||||
.find(".report-title")
|
||||
.html()
|
||||
.trim(),
|
||||
"My report"
|
||||
);
|
||||
|
||||
assert.equal(
|
||||
$report
|
||||
.find(".report-description")
|
||||
.html()
|
||||
.trim(),
|
||||
"List of my activities"
|
||||
);
|
||||
});
|
||||
|
||||
QUnit.test("Visit report page", async assert => {
|
||||
await visit("/admin/reports/staff_logins");
|
||||
|
||||
assert.ok(exists(".export-csv-btn"));
|
||||
});
|
Reference in New Issue
Block a user