FEATURE: if full search returns no results, show google search form

This commit is contained in:
Neil Lalonde
2017-08-14 18:07:49 -04:00
parent 4085c40e50
commit d506e577a5
8 changed files with 65 additions and 8 deletions

View File

@ -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');