1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-05 18:52:44 +01:00

Dusk UI tests

This commit is contained in:
David Bomba 2019-09-11 21:04:03 +10:00
parent 4536bc0566
commit 6544ca2977
2 changed files with 18 additions and 1 deletions

View File

@ -121,7 +121,6 @@ class User extends Authenticatable implements MustVerifyEmail
public function companies()
{
return $this->belongsToMany(Company::class)->using(CompanyUser::class)->withPivot('permissions', 'settings', 'is_admin', 'is_owner', 'is_locked');
}
/**

View File

@ -94,6 +94,24 @@ class ClientPortalTest extends DuskTestCase
->type('password', config('ninja.testvars.password'))
->press('Login')
->assertPathIs('/client/dashboard');
$browser->visit('client/invoices')
->assertSee('Invoice Number');
$browser->with('.table', function ($table) {
$table->assertSee('Invoice Date');
});
$browser->visit('client/payments')
->assertSee('Payment Date');
$browser->visit('client/recurring_invoices')
->assertSee('Frequency');
$browser->visit('client/logout')
->assertPathIs('/client/login');
});