mirror of
https://github.com/hanzoai/forum.git
synced 2026-09-30 21:51:19 +00:00
the PR is sponsored by vscode's regex support in find-and-replace 😉
22 lines
624 B
JavaScript
22 lines
624 B
JavaScript
import { click, visit } from "@ember/test-helpers";
|
|
import { test } from "qunit";
|
|
import { acceptance } from "discourse/tests/helpers/qunit-helpers";
|
|
|
|
acceptance("Admin - Search Logs", function (needs) {
|
|
needs.user();
|
|
|
|
test("show search logs", async function (assert) {
|
|
await visit("/admin/logs/search_logs");
|
|
|
|
assert.dom("table.search-logs-list.grid").exists("has the div class");
|
|
|
|
assert
|
|
.dom(".search-logs-list .admin-list-item .col")
|
|
.exists("has a list of search logs");
|
|
|
|
await click(".term a");
|
|
|
|
assert.dom(".search-logs-filter").exists("shows the search log term page");
|
|
});
|
|
});
|