Browse Source

travis run dusk

jqh 5 years ago
parent
commit
f2d7e44436
2 changed files with 5 additions and 2 deletions
  1. 1 2
      .travis.yml
  2. 4 0
      tests/DuskTestCase.php

+ 1 - 2
.travis.yml

@@ -39,8 +39,7 @@ install:
 
 before_script:
   - chmod 777 ./tests/resources/drivers/chromedriver-linux
-#  - ./tests/resources/drivers/chromedriver-linux --whitelisted-ips --disable-dev-shm-usage –-no-sandbox --disable-gpu --remote-debugging-port=9515 http://127.0.0.1 &
-  - google-chrome-stable --whitelisted-ips --disable-dev-shm-usage –-no-sandbox --disable-gpu --remote-debugging-port=9515 http://127.0.0.1 &
+  - google-chrome-stable --disable-web-security --allow-insecure-localhost --allow-running-insecure-content --ignore-certificate-errors --whitelisted-ips --disable-dev-shm-usage --disable-gpu --remote-debugging-port=9515 http://127.0.0.1 &
   - php artisan serve &
 
 script:

+ 4 - 0
tests/DuskTestCase.php

@@ -86,6 +86,10 @@ abstract class DuskTestCase extends BaseTestCase
             '--window-size=1920,1080',
             '--whitelisted-ips',
             '--disable-dev-shm-usage',
+            "--disable-web-security",
+            "--ignore-certificate-errors",
+            "--allow-running-insecure-content",
+            "--allow-insecure-localhost",
         ]);
 
         return RemoteWebDriver::create(