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

Payments: Assert page loads

This commit is contained in:
Benjamin Beganović 2021-07-02 16:52:16 +02:00
parent 553ce88af0
commit 213e1ab957

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 PaymentsTest 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.payments.index')
->assertSee('Recurring Invoices');
});
}
}