A platform for community discussion. Free, open, simple.
DEV: Specify target browsers when running Ember CLI tests from the docker rake task (#14720)
Roman Rizzidfb79241054b
diff --git a/lib/tasks/docker.rake b/lib/tasks/docker.rakeindex 5d66206055f..e078e5b28b3 100644--- a/lib/tasks/docker.rake+++ b/lib/tasks/docker.rake@@ -19,6 +19,7 @@# => JS_TIMEOUT set timeout for qunit tests in ms# => WARMUP_TMP_FOLDER runs a single spec to warmup the tmp folder and obtain accurate results when profiling specs.# => EMBER_CLI set to 1 to run JS tests using the Ember CLI+# => EMBER_CLI_BROWSERS comma separated list of browsers to test against. Options are Chrome, Firefox, and Headless Firefox.## Other useful environment variables (not specific to this rake task)# => COMMIT_HASH used by the discourse_test docker image to load a specific commit of discourse@@ -225,8 +226,9 @@ task 'docker:test' doif ENV["EMBER_CLI"]Dir.chdir("#{Rails.root}/app/assets/javascripts/discourse") do # rubocop:disable Discourse/NoChdir+ browsers = ENV["EMBER_CLI_BROWSERS"] || 'Chrome'@good &&= run_or_fail("yarn install")- @good &&= run_or_fail("yarn ember test")+ @good &&= run_or_fail("yarn ember test --launch #{browsers}")endendend