diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b4c0f25..53b10a7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -62,6 +62,11 @@ jobs: with: ruby-version: ${{ matrix.ruby-version }} bundler-cache: true + - uses: browser-actions/setup-chrome@v1 + with: + chrome-version: 114 + install-dependencies: true + - run: set WD_CHROME_PATH=${{ steps.setup-chrome.outputs.chrome-path }} - name: Run tests run: bundle exec rake spec diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index c125068..96bbc4b 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -24,6 +24,10 @@ # Set Selenium webdrivers install folder config.before(:all) { Webdrivers.install_dir = 'webdrivers_bin' } + if OS.windows? + Selenium::WebDriver::Chrome.path = ENV['WD_CHROME_PATH'] # set by 'browser-actions/setup-chrome' step in CI + end + # # Print error from ffmpeg log on test failure #