1
0
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:
Hillel Coren 2016-10-06 13:01:21 +03:00
parent 8fd45b4985
commit 7be7b845cb
2 changed files with 5 additions and 1 deletions

View File

@ -1317,7 +1317,9 @@
}
@if ($invoice->trashed())
return false;
if ($('#bulk_action').val() != 'restore') {
return false;
}
@endif
// check invoice number is unique

View File

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