mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-11 21:52:35 +01:00
36 lines
829 B
PHP
36 lines
829 B
PHP
<?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();
|
|
}
|
|
|
|
$this->browse(function (Browser $browser) {
|
|
$browser
|
|
->visit(new Login())
|
|
->auth();
|
|
});
|
|
}
|
|
|
|
public function testPageLoads()
|
|
{
|
|
$this->browse(function (Browser $browser) {
|
|
$browser
|
|
->visitRoute('client.recurring_invoices.index')
|
|
->assertSee('Recurring Invoices')
|
|
->visitRoute('client.logout');
|
|
});
|
|
}
|
|
}
|