Refactor full page search for style, remove lookups

This commit is contained in:
Robin Ward
2016-08-09 13:22:14 -04:00
parent d8808aa9ab
commit b2134aa173
6 changed files with 85 additions and 77 deletions

View File

@ -6,16 +6,16 @@ test("perform various searches", assert => {
andThen(() => {
assert.ok(find('input.search').length > 0);
assert.ok(find('.topic').length === 0);
assert.ok(find('.fps-topic').length === 0);
});
fillIn('.search input', 'none');
click('.search .btn-primary');
andThen(() => assert.ok(find('.topic').length === 0), 'has no results');
andThen(() => assert.ok(find('.fps-topic').length === 0), 'has no results');
fillIn('.search input', 'posts');
click('.search .btn-primary');
andThen(() => assert.ok(find('.topic').length === 1, 'has one post'));
andThen(() => assert.ok(find('.fps-topic').length === 1, 'has one post'));
});