Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
node tests: Test wildcard mentions.
Steve Howellab9d954cf1ad
diff --git a/frontend_tests/node_tests/rendered_markdown.js b/frontend_tests/node_tests/rendered_markdown.jsindex 6c8ea50ddbd..ddcd19522b8 100644--- a/frontend_tests/node_tests/rendered_markdown.js+++ b/frontend_tests/node_tests/rendered_markdown.js@@ -126,6 +126,18 @@ run_test("user-mention", () => {assert.equal($cordelia.text(), `@${cordelia.full_name}`);});+run_test("user-mention (wildcard)", () => {+ // Setup+ const $content = get_content_element();+ const $mention = $.create("mention");+ $mention.attr("data-user-id", "*");+ $content.set_find_results(".user-mention", $array([$mention]));++ assert(!$mention.hasClass("user-mention-me"));+ rm.update_elements($content);+ assert($mention.hasClass("user-mention-me"));+});+run_test("user-group-mention", () => {// Setupconst $content = get_content_element();