From 475d54cd5aa48651d0fab92e807c04733fafe67b Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Mon, 27 Feb 2017 12:57:45 +0200 Subject: [PATCH] Fix for tests --- tests/acceptance/OnlinePaymentCest.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/acceptance/OnlinePaymentCest.php b/tests/acceptance/OnlinePaymentCest.php index c8510146f42f..7edf0aad1936 100644 --- a/tests/acceptance/OnlinePaymentCest.php +++ b/tests/acceptance/OnlinePaymentCest.php @@ -96,8 +96,7 @@ class OnlinePaymentCest $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); - $I->executeJS('model.invoice().is_public(true);'); - $I->executeJS('preparePdfData(\'email\');'); + $I->executeJS('onConfirmEmailClick()'); $I->wait(4); $I->see("$0.00");