FIX: Advanced search should retain search term.

This commit is contained in:
Guo Xiang Tan
2016-10-25 11:46:50 +08:00
parent 55e33414bb
commit adfd9733c6
3 changed files with 45 additions and 14 deletions

View File

@@ -16,4 +16,11 @@ test("search", (assert) => {
andThen(() => {
assert.ok(exists('.search-menu .results ul li'), 'it shows results');
});
click('.show-help');
andThen(() => {
assert.equal(find('.full-page-search').val(), 'dev', 'it shows the search term');
assert.ok(exists('.search-advanced-options'), 'advanced search is expanded');
});
});