From 11107ee637f102fc650b62aee22b6e9255eb339c Mon Sep 17 00:00:00 2001 From: Benjamin Neff Date: Sun, 4 Jun 2023 17:10:51 +0200 Subject: [PATCH] Fix chrome parameters for running jasmine Yes, I know this is a very ugly workaround, but it works ... Chrome now requires to add `about:blank` as parameter to open and be able to use remote debugging. The jasmine-gem isn't supported anymore, and we need to switch to the `jasmine-browser-runner`, I was working on that a few months ago, but ran into problems. As the jasmine-gem doesn't allow to add parameters without `--` infront of it, lets just add a dummy parameter and add the required `about:blank` with a space after that. This is ugly, but works for now, until we can upgrade to the new jasmine version. We could also just replace the `nil` of the last parameter with that value, but I think that way it's clearer that this is a workaround and how it works. --- spec/javascripts/support/jasmine_helper.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/javascripts/support/jasmine_helper.rb b/spec/javascripts/support/jasmine_helper.rb index b25419755..77a86daf5 100644 --- a/spec/javascripts/support/jasmine_helper.rb +++ b/spec/javascripts/support/jasmine_helper.rb @@ -8,4 +8,5 @@ Jasmine.configure do |config| config.chrome_cli_options["disable-gpu"] = nil config.chrome_cli_options["disable-software-rasterizer"] = nil config.chrome_cli_options["disable-dev-shm-usage"] = nil + config.chrome_cli_options["last-parameter-to-open-blank-page-workaround"] = " about:blank" end