diff --git a/tests/Browser/ClientPortal/QuotesTest.php b/tests/Browser/ClientPortal/QuotesTest.php index 15c19a51cc71..a6495be0b015 100644 --- a/tests/Browser/ClientPortal/QuotesTest.php +++ b/tests/Browser/ClientPortal/QuotesTest.php @@ -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'); + }); + } }