mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 14:04:40 -04:00
Fix for tests
This commit is contained in:
parent
39c94fb522
commit
9c07d16be5
@ -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…
x
Reference in New Issue
Block a user