mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-13 17:14:37 -04:00
Recurring invoices: Assert page loads
This commit is contained in:
parent
7aa7fc5e29
commit
f55276c429
@ -2,8 +2,6 @@
|
|||||||
|
|
||||||
namespace Tests\Browser\ClientPortal;
|
namespace Tests\Browser\ClientPortal;
|
||||||
|
|
||||||
use App\Models\ClientContact;
|
|
||||||
use Illuminate\Foundation\Testing\DatabaseMigrations;
|
|
||||||
use Laravel\Dusk\Browser;
|
use Laravel\Dusk\Browser;
|
||||||
use Tests\Browser\Pages\ClientPortal\Login;
|
use Tests\Browser\Pages\ClientPortal\Login;
|
||||||
use Tests\DuskTestCase;
|
use Tests\DuskTestCase;
|
||||||
|
30
tests/Browser/ClientPortal/RecurringInvoices.php
Normal file
30
tests/Browser/ClientPortal/RecurringInvoices.php
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Tests\Browser\ClientPortal;
|
||||||
|
|
||||||
|
use Laravel\Dusk\Browser;
|
||||||
|
use Tests\Browser\Pages\ClientPortal\Login;
|
||||||
|
use Tests\DuskTestCase;
|
||||||
|
|
||||||
|
class RecurringInvoices 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.recurring_invoices.index')
|
||||||
|
->assertSee('Recurring Invoices');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user