diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c072d6ae..da546823 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -150,7 +150,7 @@ jobs: KNAPSACK_CI_NODE_TOTAL: ${{ matrix.ci_node_total }} KNAPSACK_CI_NODE_INDEX: ${{ matrix.ci_node_index }} PARALLEL_TESTS_CONCURRENCY: ${{ env.cpu_cores }} - run: docker run --network host -e PARALLEL_TESTS_CONCURRENCY=$PARALLEL_TESTS_CONCURRENCY -e KNAPSACK_CI_NODE_TOTAL=$KNAPSACK_CI_NODE_TOTAL -e KNAPSACK_CI_NODE_INDEX=$KNAPSACK_CI_NODE_INDEX -e RAILS_ENV=test -e HEADLESS=true -e CI=true -e CHROME_PATH=/usr/local/share/chrome_driver/chromedriver api_base/test:latest bundle exec parallel_rspec -n $PARALLEL_TESTS_CONCURRENCY -e './bin/parallel_tests' + run: docker run --network host -e PARALLEL_TESTS_CONCURRENCY=$PARALLEL_TESTS_CONCURRENCY -e KNAPSACK_CI_NODE_TOTAL=$KNAPSACK_CI_NODE_TOTAL -e KNAPSACK_CI_NODE_INDEX=$KNAPSACK_CI_NODE_INDEX -e RAILS_ENV=test -e HEADLESS=true -e CI=true api_base/test:latest bundle exec parallel_rspec -n $PARALLEL_TESTS_CONCURRENCY -e './bin/parallel_tests' # - name: Check for missing annotations # run: bundle exec annotate # - name: Check for untracked changes in app and spec directories diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 48b63729..8afd30fe 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -22,8 +22,6 @@ browser = ENV.fetch('SELENIUM_BROWSER', 'chrome') -Selenium::WebDriver::Chrome.path = ENV.fetch('CHROME_PATH', nil) if browser == 'chrome' - Capybara.register_driver :chrome do |app| args = %w[no-sandbox disable-gpu disable-dev-shm-usage] args << (ENV['HEADLESS'] == 'true' ? 'headless' : 'non-headless')