mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-11 13:42:49 +01:00
Fix for tests
This commit is contained in:
parent
8fd45b4985
commit
7be7b845cb
@ -1317,7 +1317,9 @@
|
||||
}
|
||||
|
||||
@if ($invoice->trashed())
|
||||
return false;
|
||||
if ($('#bulk_action').val() != 'restore') {
|
||||
return false;
|
||||
}
|
||||
@endif
|
||||
|
||||
// check invoice number is unique
|
||||
|
@ -77,6 +77,8 @@ class CheckBalanceCest
|
||||
|
||||
// delete the invoice
|
||||
$I->amOnPage('/invoices/' . $invoiceId);
|
||||
$I->executeJS('submitBulkAction("restore")');
|
||||
$I->wait(1);
|
||||
$I->executeJS('submitBulkAction("delete")');
|
||||
$I->wait(1);
|
||||
$I->amOnPage("/clients/{$clientId}");
|
||||
|
Loading…
Reference in New Issue
Block a user