mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 10:28:20 +08:00
FEATURE: search log term details page (#5445)
This commit is contained in:
@ -0,0 +1,10 @@
|
||||
import { acceptance } from "helpers/qunit-helpers";
|
||||
acceptance("Admin - Search Log Term", { loggedIn: true });
|
||||
|
||||
QUnit.test("show search log term details", assert => {
|
||||
visit("/admin/logs/search_logs/term/ruby");
|
||||
andThen(() => {
|
||||
assert.ok($('div.search-logs-filter').length, "has the search type filter");
|
||||
assert.ok(exists('iframe.chartjs-hidden-iframe'), "has graph iframe");
|
||||
});
|
||||
});
|
@ -401,6 +401,12 @@ export default function() {
|
||||
]);
|
||||
});
|
||||
|
||||
this.get('/admin/logs/search_logs/term/ruby.json', () => {
|
||||
return response(200, {
|
||||
"term":{"type":"search_log_term","title":"Search Count","data":[{"x":"2017-07-20","y":2}]}
|
||||
});
|
||||
});
|
||||
|
||||
this.get('/onebox', request => {
|
||||
if (request.queryParams.url === 'http://www.example.com/has-title.html' ||
|
||||
request.queryParams.url === 'http://www.example.com/has-title-and-a-url-that-is-more-than-80-characters-because-thats-good-for-seo-i-guess.html') {
|
||||
|
Reference in New Issue
Block a user