For the last day or so I've started seeing my Laravel Dusk tests fail on my CI/CD environment (GitHub Actions).
Suddenly, running the command that had been working fine all this time:
php artisan dusk:chrome-driver `/opt/google/chrome/chrome --version | cut -d " " -f3 | cut -d "." -f1`
..fails with the error:
file_get_contents(https://chromedriver.storage.googleapis.com/LATEST_RELEASE_116): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
Trying to get around this by forcing version 114:
php artisan install:chrome-driver 114
...fails with the error:
Facebook\WebDriver\Exception\SessionNotCreatedException: session not created: This version of ChromeDriver only supports Chrome version 114
How can I fix this and get my tests to start passing again?