mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-03 04:14:34 -04:00
Invoices: Assert page loads
This commit is contained in:
parent
4cf049b9fa
commit
7aa7fc5e29
32
tests/Browser/ClientPortal/InvoicesTest.php
Normal file
32
tests/Browser/ClientPortal/InvoicesTest.php
Normal 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');
|
||||
});
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user