mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 16:11:08 +08:00
FEATURE: Add seen/unseen filters to advanced search UI.
https://meta.discourse.org/t/advanced-search-posts-that-i-have-seen/57966
This commit is contained in:
@ -233,15 +233,18 @@ test("update in:private filter through advanced search ui", assert => {
|
||||
});
|
||||
});
|
||||
|
||||
test("update in:wiki filter through advanced search ui", assert => {
|
||||
test("update in:seen filter through advanced search ui", assert => {
|
||||
visit("/search");
|
||||
fillIn('.search input.full-page-search', 'none');
|
||||
click('.search-advanced-btn');
|
||||
click('.search-advanced-options .in-wiki');
|
||||
click('.search-advanced-options .in-seen');
|
||||
|
||||
andThen(() => {
|
||||
assert.ok(exists('.search-advanced-options .in-wiki:checked'), 'has "are wiki" populated');
|
||||
assert.equal(find('.search input.full-page-search').val(), "none in:wiki", 'has updated search term to "none in:wiki"');
|
||||
assert.ok(exists('.search-advanced-options .in-seen:checked'), 'it should check the right checkbox');
|
||||
|
||||
assert.equal(find('.search input.full-page-search').val(), "none in:seen",
|
||||
'it should update the search term'
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user