Fix for tests
This commit is contained in:
parent
26b8c3637b
commit
dbbe0507cf
2 changed files with 5 additions and 1 deletions
|
|
@ -1335,7 +1335,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…
Add table
Reference in a new issue