mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Update based on review comments
Found a few javascript errors when visiting the search page with ?expanded=true and no query.
This commit is contained in:
@@ -281,3 +281,13 @@ test("update posts count through advanced search ui", assert => {
|
||||
assert.equal(find('.search input.full-page-search').val(), "none posts_count:5", 'has updated search term to "none posts_count:5"');
|
||||
});
|
||||
});
|
||||
|
||||
test("validate advanced search when initially empty", assert => {
|
||||
visit("/search?expanded=true");
|
||||
click('.search-advanced-options .in-likes');
|
||||
|
||||
andThen(() => {
|
||||
assert.ok(exists('.search-advanced-options .in-likes:checked'), 'has "I liked" populated');
|
||||
assert.equal(find('.search input.full-page-search').val(), "in:likes", 'has updated search term to "in:likes"');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user