diff --git a/tests/acceptance/GatewayFeesCest.php b/tests/acceptance/GatewayFeesCest.php index 7c7d214ccf13..3798f0cd46a8 100644 --- a/tests/acceptance/GatewayFeesCest.php +++ b/tests/acceptance/GatewayFeesCest.php @@ -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),