diff --git a/tools/test-js-with-puppeteer b/tools/test-js-with-puppeteer index db2a68669c..3329192c37 100755 --- a/tools/test-js-with-puppeteer +++ b/tools/test-js-with-puppeteer @@ -7,7 +7,14 @@ import shlex ZULIP_PATH = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) -os.environ["PUPPETEER_TESTS"] = "1" +# Request the special webpack setup for frontend integration tests, +# where webpack assets are compiled up front rather than running in +# watch mode. We prefer the same for puppeteer, so the below line +# makes the webpack similar to casper. +# +# TODO: Eventually, we'll want to rename this parameter. +os.environ["CASPER_TESTS"] = "1" + os.environ["CHROMIUM_EXECUTABLE"] = os.path.join(ZULIP_PATH, "node_modules/.bin/chromium") os.environ.pop("http_proxy", "") os.environ.pop("https_proxy", "")