Invoices: Test clicking "Download" without any invoices

This commit is contained in:
Benjamin Beganović 2021-07-05 10:05:03 +02:00
parent 7b41f2dbd0
commit dde0af3fd2

View File

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