Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
node tests: Test rtl for rendered_markdown.
Steve Howell83e6c66355c9
diff --git a/frontend_tests/node_tests/rendered_markdown.js b/frontend_tests/node_tests/rendered_markdown.jsindex 57f5f761f93..e6dffd54370 100644--- a/frontend_tests/node_tests/rendered_markdown.js+++ b/frontend_tests/node_tests/rendered_markdown.js@@ -20,9 +20,6 @@ mock_cjs("clipboard", Clipboard);mock_cjs("jquery", $);const realm_playground = mock_esm("../../static/js/realm_playground");-mock_esm("../../static/js/rtl", {- get_direction: () => "ltr",-});page_params.emojiset = "apple";const rm = zrequire("rendered_markdown");@@ -432,3 +429,13 @@ run_test("code playground multiple", (override) => {assert.equal(view_code.attr("aria-label"), "translated: View in playground");assert.equal(view_code.attr("aria-haspopup"), "true");});++run_test("rtl", () => {+ const $content = get_content_element();++ $content.text("مرحبا");++ assert(!$content.hasClass("rtl"));+ rm.update_elements($content);+ assert($content.hasClass("rtl"));+});