Quotes: Clicking "Approve" button without quotes

This commit is contained in:
Benjamin Beganović 2021-07-05 13:32:41 +02:00
parent a82e3f57c3
commit f35ed86299

View File

@ -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');
});
}
}