From fe9ac56e4febd6523f0c4fa56bdfb51136feec3a Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Mon, 5 Jun 2017 09:51:43 +0300 Subject: [PATCH] Working on tests --- tests/acceptance/OnlinePaymentCest.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/acceptance/OnlinePaymentCest.php b/tests/acceptance/OnlinePaymentCest.php index dde4ac2b6dca..405752a314d4 100644 --- a/tests/acceptance/OnlinePaymentCest.php +++ b/tests/acceptance/OnlinePaymentCest.php @@ -51,7 +51,7 @@ class OnlinePaymentCest // create recurring invoice and auto-bill $I->amOnPage('/recurring_invoices/create'); - $I->selectDropdown($I, 'Test Test', '.client_select .dropdown-toggle'); + $I->selectDropdown($I, $clientEmail, '.client_select .dropdown-toggle'); $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->selectOption('#auto_bill', 3); @@ -61,7 +61,6 @@ class OnlinePaymentCest $invoiceId = $I->grabFromDatabase('invoices', 'id', ['client_id' => $clientId, 'is_recurring' => true]); $invoiceId = $I->grabFromDatabase('invoices', 'public_id', ['recurring_invoice_id' => $invoiceId]); - $I->amOnPage("/invoices/{$invoiceId}/edit"); - $I->see('Successfully applied payment'); + $I->seeInDatabase('invoices', ['client_id' => $clientId, 'public_id' => $invoiceId, 'balance' => 0]); } }