Parcourir la source

travis run dusk

jqh il y a 5 ans
Parent
commit
df8a53a8b5
2 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 1 1
      .travis.yml
  2. 2 2
      tests/DuskTestCase.php

+ 1 - 1
.travis.yml

@@ -38,7 +38,7 @@ install:
 #  - php artisan dusk:chrome-driver
 
 before_script:
-  - google-chrome-stable --headless --disable-gpu --remote-debugging-port=9515 http://localhost &
+  - google-chrome-stable --headless --disable-gpu --remote-debugging-port=9515 http://127.0.0.1 &
   - php artisan serve &
 
 script:

+ 2 - 2
tests/DuskTestCase.php

@@ -87,8 +87,8 @@ abstract class DuskTestCase extends BaseTestCase
         ]);
 
         return RemoteWebDriver::create(
-            'http://localhost:9515', DesiredCapabilities::chrome()->setCapability(
-                ChromeOptions::CAPABILITY, $options
+            'http://127.0.0.1:9515', DesiredCapabilities::chrome()->setCapability(
+                ChromeOptions::CAPABILITY_W3C, $options
             )
         );
     }