mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
Add the integration test for search back using a fixture.
This commit is contained in:
parent
e9600d7cb1
commit
a71640c15f
3 changed files with 6 additions and 10 deletions
1
test/javascripts/fixtures/search-fixtures.js.es6
Normal file
1
test/javascripts/fixtures/search-fixtures.js.es6
Normal file
File diff suppressed because one or more lines are too long
|
@ -38,10 +38,6 @@ export default function() {
|
||||||
return [200, {"Content-Type": "text/html"}, "<div class='page-not-found'>not found</div>"];
|
return [200, {"Content-Type": "text/html"}, "<div class='page-not-found'>not found</div>"];
|
||||||
});
|
});
|
||||||
|
|
||||||
this.get("/search", function() {
|
|
||||||
return response([ { type: "topic", more: true, results: [ { url: "some-url" } ] } ]);
|
|
||||||
});
|
|
||||||
|
|
||||||
this.get('/draft.json', function() {
|
this.get('/draft.json', function() {
|
||||||
return response({});
|
return response({});
|
||||||
});
|
});
|
||||||
|
|
|
@ -36,10 +36,9 @@ test("header", function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
// Perform Search
|
// Perform Search
|
||||||
// TODO: @Robin how do I update this? can we have some sort of comment at the top?
|
fillIn("#search-term", "hello");
|
||||||
// fillIn("#search-term", "hello");
|
andThen(function() {
|
||||||
// andThen(function() {
|
ok(exists("#search-dropdown .heading"), "when user completes a search, search box shows search results");
|
||||||
// ok(exists("#search-dropdown .heading"), "when user completes a search, search box shows search results");
|
equal(find("#search-dropdown a:not(.filter):first").attr("href"), "/t/hello-bar-integration-issues/17638", "there is a search result");
|
||||||
// equal(find("#search-dropdown a:not(.filter):first").attr("href"), "some-url", "there is a search result");
|
});
|
||||||
// });
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue