Browse Source

travis run dusk

jqh 5 years ago
parent
commit
56875431f3
3 changed files with 7 additions and 13 deletions
  1. 2 2
      .travis.yml
  2. 5 5
      tests/ChromeProcess.php
  3. 0 6
      tests/DuskTestCase.php

+ 2 - 2
.travis.yml

@@ -35,11 +35,11 @@ install:
   - php artisan admin:publish --force
   - php artisan admin:install
   - php artisan migrate:rollback
-  - php artisan dusk:chrome-driver
+#  - php artisan dusk:chrome-driver
 
 before_script:
   - chmod 777 ./tests/resources/drivers/chromedriver-linux
-  - google-chrome --whitelisted-ips --headless --disable-gpu --remote-debugging-port=9515 http://127.0.0.1 &
+#  - google-chrome --whitelisted-ips --headless --disable-gpu --remote-debugging-port=9515 http://127.0.0.1 &
   - php artisan serve &
 
 script:

+ 5 - 5
tests/ChromeProcess.php

@@ -13,10 +13,10 @@ class ChromeProcess extends BaseChromeProcess
         if ($this->onWindows()) {
             $this->driver = realpath(__DIR__.'/resources/drivers/chromedriver-win.exe');
         }
-        //elseif ($this->onMac()) {
-        //    $this->driver = realpath(__DIR__.'/resources/drivers/chromedriver-mac');
-        //} else {
-        //    $this->driver = realpath(__DIR__.'/resources/drivers/chromedriver-linux');
-        //}
+        elseif ($this->onMac()) {
+            $this->driver = realpath(__DIR__.'/resources/drivers/chromedriver-mac');
+        } else {
+            $this->driver = realpath(__DIR__.'/resources/drivers/chromedriver-linux');
+        }
     }
 }

+ 0 - 6
tests/DuskTestCase.php

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