mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Quotes: Clicking "Approve" button without quotes
This commit is contained in:
parent
a82e3f57c3
commit
f35ed86299
@ -12,6 +12,7 @@
|
||||
|
||||
namespace Tests\Browser\ClientPortal;
|
||||
|
||||
use App\Models\Quote;
|
||||
use Laravel\Dusk\Browser;
|
||||
use Tests\Browser\Pages\ClientPortal\Login;
|
||||
use Tests\DuskTestCase;
|
||||
@ -42,4 +43,14 @@ class QuotesTest extends DuskTestCase
|
||||
->visitRoute('client.logout');
|
||||
});
|
||||
}
|
||||
|
||||
public function testClickingApproveWithoutQuotes()
|
||||
{
|
||||
$this->browse(function (Browser $browser) {
|
||||
$browser
|
||||
->visitRoute('client.quotes.index')
|
||||
->press('Approve')
|
||||
->assertPathIs('/client/quotes');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user