From a80a7c5cc05d6602f8c0185c5d1e0081084a2557 Mon Sep 17 00:00:00 2001 From: Matt Brictson Date: Sun, 16 Jan 2022 15:07:30 -0800 Subject: [PATCH] Invert the HEADLESS_CHROME var --- Rakefile.rb | 2 +- circleci/config.yml.tt | 1 - test/template.rb | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Rakefile.rb b/Rakefile.rb index a101dd0..95ee752 100644 --- a/Rakefile.rb +++ b/Rakefile.rb @@ -4,7 +4,7 @@ append_to_file "Rakefile" do Rake::Task[:default].prerequisites.clear if Rake::Task.task_defined?(:default) task :default do sh "bin/rails test" - sh "HEADLESS_CHROME=1 bin/rails test:system" + sh "bin/rails test:system" raise unless system("bin/rubocop") & diff --git a/circleci/config.yml.tt b/circleci/config.yml.tt index f4f87df..1432beb 100644 --- a/circleci/config.yml.tt +++ b/circleci/config.yml.tt @@ -14,7 +14,6 @@ executors: PGUSER: postgres PGPASS: postgres RAILS_ENV: test - HEADLESS_CHROME: "1" - image: circleci/postgres:13-ram environment: POSTGRES_USER: postgres diff --git a/test/template.rb b/test/template.rb index e3602f6..9dd9fe9 100644 --- a/test/template.rb +++ b/test/template.rb @@ -12,7 +12,7 @@ empty_directory_with_keep_file "test/unit/lib/tasks" gsub_file "test/application_system_test_case.rb", /^ driven_by :selenium.*$/, <<~RUBY driven_by :selenium, - using: (ENV["HEADLESS_CHROME"] ? :headless_chrome : :chrome), + using: (ENV["DISABLE_HEADLESS_CHROME"] ? :chrome : :headless_chrome), screen_size: [1400, 1400] do |options| options.add_argument("no-sandbox") end