Skip to content

Instantly share code, notes, and snippets.

@sirawitpra
Last active January 31, 2019 14:08
Show Gist options
  • Save sirawitpra/3643561a495cdaff4abda099b41be9a5 to your computer and use it in GitHub Desktop.
Save sirawitpra/3643561a495cdaff4abda099b41be9a5 to your computer and use it in GitHub Desktop.
<?php
namespace Tests\Feature;
use Tests\DuskTestCase;
use Laravel\Dusk\Concerns\ProvidesBrowser;
class LoginTest extends DuskTestCase
{
use ProvidesBrowser; // 1. Import this trait to your test
public function tearDown()
{
parent::tearDown();
static::closeAll(); // 2. And put this line
}
// your tests goes here
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment