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.

puppeteer_test: Set the system default locale to `en_US`.

Riken Shahfb8dc7732c69
diff --git a/tools/test-js-with-puppeteer b/tools/test-js-with-puppeteer
index 5445f930076..41e4ce7b8d1 100755
--- a/tools/test-js-with-puppeteer
+++ b/tools/test-js-with-puppeteer
@@ -15,6 +15,10 @@ ZULIP_PATH = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# watch mode.
os.environ["PUPPETEER_TESTS"] = "1"
+# The locale can have impact how Firefox does locale-aware sorting,
+# which we do verify in some tests.
+os.environ["LC_ALL"] = "en_US.UTF-8"
+
os.environ["CHROMIUM_EXECUTABLE"] = os.path.join(ZULIP_PATH, "node_modules/.bin/chromium")
os.environ.pop("http_proxy", "")
os.environ.pop("https_proxy", "")