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