Working on tests
This commit is contained in:
parent
cbc40d9542
commit
779f990e64
1 changed files with 4 additions and 1 deletions
|
|
@ -151,25 +151,28 @@ class GatewayFeesCest
|
|||
|
||||
// check we correctly remove/add back the gateway fee
|
||||
$I->amOnPage('/payment/' . $invitationKey . '/credit_card');
|
||||
$I->wait(3);
|
||||
$I->seeInDatabase('invoices', [
|
||||
'id' => $invoiceId,
|
||||
'amount' => ($amount + $fee),
|
||||
]);
|
||||
|
||||
$I->amOnPage('/payment/' . $invitationKey . '/bank_transfer');
|
||||
$I->wait(3);
|
||||
$I->seeInDatabase('invoices', [
|
||||
'id' => $invoiceId,
|
||||
'amount' => ($amount + $fee * 2),
|
||||
]);
|
||||
|
||||
$I->amOnPage('/view/' . $invitationKey);
|
||||
$I->wait(3);
|
||||
$I->seeInDatabase('invoices', [
|
||||
'id' => $invoiceId,
|
||||
'amount' => ($amount + $fee * 2),
|
||||
]);
|
||||
|
||||
$I->createOnlinePayment($I, $invitationKey);
|
||||
|
||||
$I->wait(3);
|
||||
$I->seeInDatabase('invoices', [
|
||||
'id' => $invoiceId,
|
||||
'amount' => ($amount + $fee),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue