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");