Fix for tests
This commit is contained in:
parent
39c94fb522
commit
9c07d16be5
2 changed files with 2 additions and 2 deletions
|
|
@ -223,7 +223,7 @@
|
|||
var invoice = invoiceMap[invoiceId];
|
||||
var amount = $('#amount').val();
|
||||
|
||||
if (amount <= invoice.balance || confirm("{{ trans('texts.amount_greater_than_balance') }}")) {
|
||||
if (NINJA.praseFloat(amount) <= invoice.balance || confirm("{{ trans('texts.amount_greater_than_balance') }}")) {
|
||||
$('#saveButton').attr('disabled', true);
|
||||
return true;
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ class PaymentCest
|
|||
$I->fillField(['name' => 'transaction_reference'], $this->faker->text(12));
|
||||
|
||||
$I->click('Save');
|
||||
$I->wait(1);
|
||||
$I->wait(2);
|
||||
|
||||
$I->see('Successfully created payment');
|
||||
$I->seeInDatabase('payments', ['amount' => number_format($amount, 2)]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue