mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 06:01:26 +08:00
FEATURE: if full search returns no results, show google search form
This commit is contained in:
@ -53,7 +53,10 @@ QUnit.test("perform various searches", assert => {
|
||||
fillIn('.search input.full-page-search', 'none');
|
||||
click('.search .btn-primary');
|
||||
|
||||
andThen(() => assert.ok(find('.fps-topic').length === 0), 'has no results');
|
||||
andThen(() => {
|
||||
assert.ok(find('.fps-topic').length === 0, 'has no results');
|
||||
assert.ok(find('.no-results-suggestion .google-search-form'));
|
||||
});
|
||||
|
||||
fillIn('.search input.full-page-search', 'posts');
|
||||
click('.search .btn-primary');
|
||||
|
Reference in New Issue
Block a user