Is this package can help
Setting Up Testing With Laravel 5.3 And Selenium
Hi there,
I'm just starting a new L5.3 project and have come to need testing some javascript functionality. I'm using Selenium, but I can't see how to set it up to use with the nice testing helpers.
I have a SeleniumTestCase which my main LoginTest file extends...
<?php
use Tests\Traits\UserTypes;
class SeleniumTestCase extends PHPUnit_Extensions_Selenium2TestCase
{
use UserTypes;
/**
* @var
*/
protected $app;
/**
* @var string
*/
protected $baseUrl = 'http://my-url.dev';
/**
* Set up the tests
*/
public function setUp()
{
$this->setBrowser('firefox');
$this->setBrowserUrl($this->baseUrl);
$this->createApplication();
}
/**
* Creates the application.
*
* @return \Illuminate\Foundation\Application
*/
public function createApplication()
{
$app = require __DIR__ . '/../bootstrap/app.php';
$app->make('Illuminate\Contracts\Console\Kernel')->bootstrap();
return $app;
}
Because I'm extending PHPUnit_Extensions_Selenium2TestCase I don't have access to the great testing helpers. In the past I've used Laracasts' Integrated package but from what I can see this seems to have been abandoned as functionality has moved into Laravel core.
How are others implementing Selenium in their projects?
Any tips on how I can set this up?
Please or to participate in this conversation.