1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Documents: Assert page loads

This commit is contained in:
Benjamin Beganović 2021-07-02 16:59:03 +02:00
parent ccf64f6a3d
commit a2e25de6ab

View File

@ -0,0 +1,30 @@
<?php
namespace Tests\Browser\ClientPortal;
use Laravel\Dusk\Browser;
use Tests\Browser\Pages\ClientPortal\Login;
use Tests\DuskTestCase;
class DocumentsTest 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.documents.index')
->assertSee('Invoices');
});
}
}