Follow up to 8c2fa99f78.
`/search_logs/term?term` is alittle weird looking but unless we add proper slug support to term, we're going to have to live with this first.
This commit is contained in:
@@ -2,7 +2,7 @@ import { acceptance } from "helpers/qunit-helpers";
|
||||
acceptance("Admin - Search Log Term", { loggedIn: true });
|
||||
|
||||
QUnit.test("show search log term details", async assert => {
|
||||
await visit("/admin/logs/search_logs/term/ruby");
|
||||
await visit("/admin/logs/search_logs/term?term=ruby");
|
||||
|
||||
assert.ok($("div.search-logs-filter").length, "has the search type filter");
|
||||
assert.ok(exists("canvas.chartjs-render-monitor"), "has graph canvas");
|
||||
|
||||
@@ -5,8 +5,16 @@ QUnit.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"
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user