Skip to content

Instantly share code, notes, and snippets.

@uno-de-piera
Last active May 31, 2020 08:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uno-de-piera/666fb4173760fea67771eed319fd8ca6 to your computer and use it in GitHub Desktop.
Save uno-de-piera/666fb4173760fea67771eed319fd8ca6 to your computer and use it in GitHub Desktop.
<?php
namespace Tests\Browser;
use App\LanguageFramework;
use App\User;
use Laravel\Dusk\Browser;
use Tests\DuskTestCase;
use Illuminate\Foundation\Testing\DatabaseMigrations;
/**
*
* testing with pages
*
* Class FrameworkTest
* @package Tests\Browser
*/
class FrameworkTest extends DuskTestCase
{
use DatabaseMigrations;
/**
* @group framework-page
*/
public function testVisitFrameworkPage()
{
factory(User::class, 1)->create();
$this->browse(function (Browser $browser) {
$browser->loginAs(User::find(1))
->visit(new \Tests\Browser\Pages\Framework)
->assertSee('Framework');
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment