mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-18 03:25:31 -05:00
21 lines
574 B
JavaScript
21 lines
574 B
JavaScript
import { acceptance } from "helpers/qunit-helpers";
|
|
acceptance("Search - Full Page");
|
|
|
|
test("perform various searches", assert => {
|
|
visit("/search");
|
|
|
|
andThen(() => {
|
|
assert.ok(find('input.search').length > 0);
|
|
assert.ok(find('.fps-topic').length === 0);
|
|
});
|
|
|
|
fillIn('.search input', 'none');
|
|
click('.search .btn-primary');
|
|
|
|
andThen(() => assert.ok(find('.fps-topic').length === 0), 'has no results');
|
|
|
|
fillIn('.search input', 'posts');
|
|
click('.search .btn-primary');
|
|
|
|
andThen(() => assert.ok(find('.fps-topic').length === 1, 'has one post'));
|
|
});
|