Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

recent: Rename recent_topics in some test files.

evykassirerfc2ff74ea248
diff --git a/web/e2e-tests/message-basics.test.ts b/web/e2e-tests/message-basics.test.ts
index 16d73ebd6b1..4b4440588d4 100644
--- a/web/e2e-tests/message-basics.test.ts
+++ b/web/e2e-tests/message-basics.test.ts
@@ -96,7 +96,7 @@ async function un_narrow_by_clicking_org_icon(page: Page): Promise<void> {
await page.click(".brand");
}
-async function expect_recent_topics(page: Page): Promise<void> {
+async function expect_recent_view(page: Page): Promise<void> {
await page.waitForSelector("#recent_view_table", {visible: true});
assert.strictEqual(await page.title(), "Recent conversations - Zulip Dev - Zulip");
}
@@ -132,7 +132,7 @@ async function test_navigations_from_home(page: Page): Promise<void> {
`#zhome [title="Narrow to your direct messages with Cordelia, Lear's daughter, King Hamlet"]`,
);
await un_narrow_by_clicking_org_icon(page);
- await expect_recent_topics(page);
+ await expect_recent_view(page);
}
async function search_and_check(
diff --git a/web/tests/recent_topics.test.js b/web/tests/recent_topics.test.js
index 1f5c178e96d..187517873c4 100644
--- a/web/tests/recent_topics.test.js
+++ b/web/tests/recent_topics.test.js
@@ -413,7 +413,7 @@ function test(label, f) {
});
}
-test("test_recent_topics_show", ({mock_template, override}) => {
+test("test_recent_view_show", ({mock_template, override}) => {
override(narrow, "save_pre_narrow_offset_for_reload", () => {});
// Note: unread count and urls are fake,