This repository has been archived on 2023-03-18. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
osr-discourse-src/app/assets/javascripts/discourse/tests/acceptance/admin-search-logs-test.js
T
Robin Ward e634513568 Move click and fillIn to imports
Previously they were global functions.
2020-10-27 08:55:56 -04:00

26 lines
656 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 (assert) => {
await visit("/admin/logs/search_logs");
assert.ok($("table.search-logs-list.grid").length, "has the div class");
assert.ok(
exists(".search-logs-list .admin-list-item .col"),
"has a list of search logs"
);
await click(".term a");
assert.ok(
$("div.search-logs-filter").length,
"it should show the search log term page"
);
});
});