From fb6f2235380139356711ed5d1a74a620d4cf2584 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Wed, 14 Sep 2016 18:54:49 +0300 Subject: [PATCH] Fix for payment test --- tests/acceptance/PaymentCest.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/acceptance/PaymentCest.php b/tests/acceptance/PaymentCest.php index 3940d6c7ae15..df2548194bd2 100644 --- a/tests/acceptance/PaymentCest.php +++ b/tests/acceptance/PaymentCest.php @@ -34,6 +34,7 @@ class PaymentCest $I->fillField(['name' => 'notes'], $this->faker->text(80)); $I->fillField(['name' => 'cost'], $this->faker->numberBetween(11, 20)); $I->click('Save'); + $I->wait(1); $I->see($productKey); // create invoice @@ -42,6 +43,7 @@ class PaymentCest $I->fillField('table.invoice-table tbody tr:nth-child(1) #product_key', $productKey); $I->click('table.invoice-table tbody tr:nth-child(1) .tt-selectable'); $I->click('Save'); + $I->wait(1); $I->see($clientEmail); $I->amOnPage('/payments/create'); @@ -53,7 +55,8 @@ class PaymentCest $I->fillField(['name' => 'transaction_reference'], $this->faker->text(12)); $I->click('Save'); - + $I->wait(1); + $I->see('Successfully created payment'); $I->seeInDatabase('payments', ['amount' => number_format($amount, 2)]); } @@ -61,7 +64,7 @@ class PaymentCest public function editPayment(AcceptanceTester $I) { $ref = $this->faker->text(12); - + $I->wantTo('edit a payment'); $I->amOnPage('/payments/1/edit');