From dde0af3fd2397bc1dc6bd7f810be5f4a6087bee4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Mon, 5 Jul 2021 10:05:03 +0200 Subject: [PATCH] Invoices: Test clicking "Download" without any invoices --- tests/Browser/ClientPortal/InvoicesTest.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/Browser/ClientPortal/InvoicesTest.php b/tests/Browser/ClientPortal/InvoicesTest.php index c909ff9e2850..20c25adeb929 100644 --- a/tests/Browser/ClientPortal/InvoicesTest.php +++ b/tests/Browser/ClientPortal/InvoicesTest.php @@ -39,4 +39,16 @@ class InvoicesTest extends DuskTestCase ->assertSee('No payable invoices selected. Make sure you are not trying to pay draft invoice or invoice with zero balance due.'); }); } + + public function testClickingDownloadWithoutInvoices() + { + $this->browse(function (Browser $browser) { + $browser + ->visit(new Login()) + ->auth() + ->visitRoute('client.invoices.index') + ->press('Download') + ->assertSee('No items selected.'); + }); + } }