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:
parent
4536bc0566
commit
6544ca2977
@ -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');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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');
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user