Invoices: Assert page loads

This commit is contained in:
Benjamin Beganović 2021-07-02 16:36:53 +02:00
parent 4cf049b9fa
commit 7aa7fc5e29

View File

@ -0,0 +1,32 @@
<?php
namespace Tests\Browser\ClientPortal;
use App\Models\ClientContact;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Laravel\Dusk\Browser;
use Tests\Browser\Pages\ClientPortal\Login;
use Tests\DuskTestCase;
class InvoicesTest extends DuskTestCase
{
protected function setUp(): void
{
parent::setUp();
foreach (static::$browsers as $browser) {
$browser->driver->manage()->deleteAllCookies();
}
}
public function testPageLoads()
{
$this->browse(function (Browser $browser) {
$browser
->visit(new Login())
->auth()
->visitRoute('client.invoices.index')
->assertSee('Invoices');
});
}
}