diff --git a/web/e2e-tests/navigation.test.ts b/web/e2e-tests/navigation.test.ts index d95b7756f3..6bf2401bc4 100644 --- a/web/e2e-tests/navigation.test.ts +++ b/web/e2e-tests/navigation.test.ts @@ -6,7 +6,8 @@ import * as common from "./lib/common"; async function navigate_using_left_sidebar(page: Page, stream_name: string): Promise { console.log("Visiting #" + stream_name); - await page.click(`.stream-name[title="${stream_name}"]`); + const stream_id = await page.evaluate(() => zulip_test.get_sub("Verona")!.stream_id); + await page.click(`.narrow-filter[data-stream-id="${stream_id}"] .stream-name`); await page.waitForSelector(`#message_feed_container`, {visible: true}); } diff --git a/web/templates/stream_sidebar_row.hbs b/web/templates/stream_sidebar_row.hbs index 0808881a2e..a24beb99b8 100644 --- a/web/templates/stream_sidebar_row.hbs +++ b/web/templates/stream_sidebar_row.hbs @@ -8,7 +8,7 @@ {{> stream_privacy }} - {{name}} + {{name}}