mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Invoices: Test clicking "Pay Now" without selecting any invoices
This commit is contained in:
parent
90e0d0cbab
commit
7b41f2dbd0
@ -27,4 +27,16 @@ class InvoicesTest extends DuskTestCase
|
|||||||
->assertSee('Invoices');
|
->assertSee('Invoices');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function testClickingPayNowWithoutInvoices()
|
||||||
|
{
|
||||||
|
$this->browse(function (Browser $browser) {
|
||||||
|
$browser
|
||||||
|
->visit(new Login())
|
||||||
|
->auth()
|
||||||
|
->visitRoute('client.invoices.index')
|
||||||
|
->press('Pay Now')
|
||||||
|
->assertSee('No payable invoices selected. Make sure you are not trying to pay draft invoice or invoice with zero balance due.');
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user