From 779f990e64e672a9b724bcee5463334f9e788684 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Tue, 10 Apr 2018 12:28:45 +0300 Subject: [PATCH] Working on tests --- tests/acceptance/GatewayFeesCest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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),