mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 18:34:30 -04:00
Invoices: Test clicking "Download" without any invoices
This commit is contained in:
parent
7b41f2dbd0
commit
dde0af3fd2
@ -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.');
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user