mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 05:53:52 +08:00
Refactor full page search for style, remove lookups
This commit is contained in:
@ -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'));
|
||||
});
|
||||
|
Reference in New Issue
Block a user