Working on tests

This commit is contained in:
Hillel Coren 2018-04-10 12:28:45 +03:00
parent cbc40d9542
commit 779f990e64

View File

@ -151,25 +151,28 @@ class GatewayFeesCest
// check we correctly remove/add back the gateway fee // check we correctly remove/add back the gateway fee
$I->amOnPage('/payment/' . $invitationKey . '/credit_card'); $I->amOnPage('/payment/' . $invitationKey . '/credit_card');
$I->wait(3);
$I->seeInDatabase('invoices', [ $I->seeInDatabase('invoices', [
'id' => $invoiceId, 'id' => $invoiceId,
'amount' => ($amount + $fee), 'amount' => ($amount + $fee),
]); ]);
$I->amOnPage('/payment/' . $invitationKey . '/bank_transfer'); $I->amOnPage('/payment/' . $invitationKey . '/bank_transfer');
$I->wait(3);
$I->seeInDatabase('invoices', [ $I->seeInDatabase('invoices', [
'id' => $invoiceId, 'id' => $invoiceId,
'amount' => ($amount + $fee * 2), 'amount' => ($amount + $fee * 2),
]); ]);
$I->amOnPage('/view/' . $invitationKey); $I->amOnPage('/view/' . $invitationKey);
$I->wait(3);
$I->seeInDatabase('invoices', [ $I->seeInDatabase('invoices', [
'id' => $invoiceId, 'id' => $invoiceId,
'amount' => ($amount + $fee * 2), 'amount' => ($amount + $fee * 2),
]); ]);
$I->createOnlinePayment($I, $invitationKey); $I->createOnlinePayment($I, $invitationKey);
$I->wait(3);
$I->seeInDatabase('invoices', [ $I->seeInDatabase('invoices', [
'id' => $invoiceId, 'id' => $invoiceId,
'amount' => ($amount + $fee), 'amount' => ($amount + $fee),