Skip to content

Instantly share code, notes, and snippets.


uno-de-piera/DatatablesTest.php Secret

Created May 31, 2020
What would you like to do?
namespace Tests\Browser;
use App\User;
use Laravel\Dusk\Browser;
use Tests\DuskTestCase;
use Illuminate\Foundation\Testing\DatabaseMigrations;
* Class DatatablesTest
* @package Tests\Browser
* @group datatables
class DatatablesTest extends DuskTestCase
use DatabaseMigrations;
public function testDatatablesCheckLoad()
factory(User::class, 10)->create();
$user = User::find(2);
$this->browse(function ($browser) use($user)
//->pause(500) //peticiones ajax
->with('.table', function (Browser $table) use ($user)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment