mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
left_sidebar: Avoid selecting header as first row when searching.
This commit is contained in:
@@ -329,10 +329,6 @@ async function test_stream_search_filters_stream_list(page: Page): Promise<void>
|
||||
// Enter the search box and test highlighted suggestion
|
||||
await page.click(".left-sidebar-search-input");
|
||||
|
||||
await page.waitForSelector("#views-label-container.highlighted_row", {visible: true});
|
||||
|
||||
await arrow(page, "Down");
|
||||
|
||||
await page.waitForSelector(".top_left_inbox.top_left_row.highlighted_row", {visible: true});
|
||||
|
||||
await page.waitForSelector((await get_stream_li(page, "Verona")) + " .highlighted_row", {
|
||||
|
||||
@@ -539,7 +539,8 @@ export function initialize_left_sidebar_cursor(): void {
|
||||
if ($all_rows.length === 0) {
|
||||
return undefined;
|
||||
}
|
||||
return $all_rows.first();
|
||||
const $non_header_rows = $all_rows.not($(get_header_rows_selectors()));
|
||||
return $non_header_rows.first();
|
||||
},
|
||||
next_key($key) {
|
||||
const $all_rows = all_rows();
|
||||
|
||||
Reference in New Issue
Block a user