2015-06-22 14:05:35 -04:00
|
|
|
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');
|
2015-08-26 16:55:01 -04:00
|
|
|
assert.ok(!exists('.search-menu .results ul li'), 'no results by default');
|
2015-06-22 14:05:35 -04:00
|
|
|
});
|
|
|
|
|
2015-08-10 15:31:10 -04:00
|
|
|
fillIn('#search-term', 'dev');
|
|
|
|
andThen(() => {
|
2015-08-26 16:55:01 -04:00
|
|
|
assert.ok(exists('.search-menu .results ul li'), 'it shows results');
|
2015-08-10 15:31:10 -04:00
|
|
|
});
|
2015-06-22 14:05:35 -04:00
|
|
|
});
|