Refactor search results to be components instead of views for reuse

This commit is contained in:
Robin Ward
2015-06-22 14:05:35 -04:00
parent 76bfd723f6
commit 7ed309666b
21 changed files with 764 additions and 81 deletions

View 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