diff --git a/.github/workflows/rubyonrails.yml b/.github/workflows/rubyonrails.yml index 4b73fa3ca..3a2964b1d 100644 --- a/.github/workflows/rubyonrails.yml +++ b/.github/workflows/rubyonrails.yml @@ -39,9 +39,14 @@ jobs: - name: Start chromedriver run: | set -x - touch ~/chromedriver.log - chromedriver --url-base=/wd/hub | sudo tee -a ~/chromedriver.log & + mkdir -p tmp/screenshots + touch tmp/screenshots/chromedriver.log + chromedriver --url-base=/wd/hub | sudo tee -a tmp/screenshots/chromedriver.log & bin/lib/wait-for-it.sh localhost:9515 -- echo "Chromedriver is up!" + curl -I -XPOST http://localhost:9515/wd/hub/session \ + -H 'Content-Type: application/json' \ + -d '{"desiredCapabilities":{"browserName":"chrome"}}' + # sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 & # optional - uses: ruby/setup-ruby@v1