mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Refactor search results to be components instead of views for reuse
This commit is contained in:
18
test/javascripts/acceptance/search-test.js.es6
Normal file
18
test/javascripts/acceptance/search-test.js.es6
Normal file
@@ -0,0 +1,18 @@
|
||||
import { acceptance } from "helpers/qunit-helpers";
|
||||
acceptance("Search");
|
||||
|
||||
test("search", (assert) => {
|
||||
visit("/");
|
||||
|
||||
click('#search-button');
|
||||
|
||||
andThen(() => {
|
||||
assert.ok(exists('#search-term'), 'it shows the search bar');
|
||||
assert.ok(!exists('#search-dropdown .results ul li'), 'no results by default');
|
||||
});
|
||||
|
||||
fillIn('#search-term', 'dev');
|
||||
andThen(() => {
|
||||
assert.ok(exists('#search-dropdown .results ul li'), 'it shows results');
|
||||
});
|
||||
});
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user