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');
|
|
|
|
assert.ok(!exists('#search-dropdown .results ul li'), 'no results by default');
|
|
|
|
});
|
|
|
|
|
2015-08-10 04:25:44 -04:00
|
|
|
// TODO need to change the way Discourse.ajax is stubbed so it has the .abort method
|
|
|
|
// fillIn('#search-term', 'dev');
|
|
|
|
// andThen(() => {
|
|
|
|
// assert.ok(exists('#search-dropdown .results ul li'), 'it shows results');
|
|
|
|
// });
|
2015-06-22 14:05:35 -04:00
|
|
|
});
|