From f35ed86299e790c999102a3570cb5a75a734c712 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Mon, 5 Jul 2021 13:32:41 +0200 Subject: [PATCH] Quotes: Clicking "Approve" button without quotes --- tests/Browser/ClientPortal/QuotesTest.php | 11 +++++++++++ 1 file changed, 11 insertions(+) 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'); + }); + } }