mirror of
https://github.com/hanzoai/forum.git
synced 2026-09-30 21:51:19 +00:00
Applies the admin UI guidelines from https://meta.discourse.org/t/creating-consistent-admin-interfaces/326780 to the reports list and single report page for admins.   --------- Co-authored-by: Ella <[email protected]>
34 lines
912 B
JavaScript
34 lines
912 B
JavaScript
import { visit } from "@ember/test-helpers";
|
|
import { test } from "qunit";
|
|
import { acceptance } from "discourse/tests/helpers/qunit-helpers";
|
|
|
|
acceptance("Reports", function (needs) {
|
|
needs.user();
|
|
|
|
test("Visit reports page", async function (assert) {
|
|
await visit("/admin/reports");
|
|
|
|
assert
|
|
.dom(".admin-reports-list .admin-section-landing-item__content")
|
|
.exists({ count: 1 });
|
|
|
|
assert
|
|
.dom(
|
|
".admin-reports-list .admin-section-landing-item__content .admin-section-landing-item__title"
|
|
)
|
|
.hasHtml("My report");
|
|
|
|
assert
|
|
.dom(
|
|
".admin-reports-list .admin-section-landing-item__content .admin-section-landing-item__description"
|
|
)
|
|
.hasHtml("List of my activities");
|
|
});
|
|
|
|
test("Visit report page", async function (assert) {
|
|
await visit("/admin/reports/staff_logins");
|
|
|
|
assert.dom(".export-csv-btn").exists();
|
|
});
|
|
});
|