From 9351e7fb93937e6d3f43ccb6884f1721a40a70b6 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Mon, 5 Dec 2016 21:43:22 +0200 Subject: [PATCH] Fix for tests --- tests/acceptance/OnlinePaymentCest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/acceptance/OnlinePaymentCest.php b/tests/acceptance/OnlinePaymentCest.php index 870330f26321..1a567b1cc09d 100644 --- a/tests/acceptance/OnlinePaymentCest.php +++ b/tests/acceptance/OnlinePaymentCest.php @@ -96,7 +96,8 @@ 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('preparePdfData(\'email\')'); + $I->executeJS('model.invoice().is_public(true);'); + $I->executeJS('preparePdfData(\'email\');'); $I->wait(3); $I->see("$0.00");