Files
Jarek RadoszandGitHub a5a92152cc DEV: Convert more test assertions to qunit-dom (#29214)
the PR is sponsored by vscode's regex support in find-and-replace 😉
2024-10-15 17:11:20 +02:00

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");
});
});