Make install.php accept long Chrome version string

[skip ci]
pull/7143/head
Aleksander Machniak 4 years ago
parent 421dbf5271
commit 57162ef481

@ -14,11 +14,15 @@ INSTALLATION
Installation:
1. Add `"laravel/dusk": "~5.7.0"` to your composer.json file and run `composer update`.
0. Note that the suite has been tested with PHP 7.3 and 7.4.
1. Install Laravel Dusk with all dependencies.
```
composer require "laravel/dusk:~5.7.0"
```
2. Install Chrome WebDriver for the version of Chrome/Chromium in your system. Yes,
you have to have Chrome/Chromium installed.
```
php tests/Browser/install.php [version]`
php tests/Browser/install.php [version]
```
3. Configure the test account and Roundcube instance.

@ -35,7 +35,8 @@ class Installer extends Laravel\Dusk\Console\ChromeDriverCommand
*/
public function install($version = null)
{
$version = trim($this->getUrl(sprintf($this->versionUrl, $version ?: $this->latestVersion())));
$version = $version ? preg_replace('/\..*/', '', $version) : $this->latestVersion();
$version = trim($this->getUrl(sprintf($this->versionUrl, $version)));
$currentOS = Laravel\Dusk\OperatingSystem::id();
foreach ($this->slugs as $os => $slug) {

Loading…
Cancel
Save