2015-06-23 02:05:35 +08: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 16:25:44 +08: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-23 02:05:35 +08:00
|
|
|
});
|