diff --git a/mailpoet/assets/js/src/wizard/steps/woocommerce_step.tsx b/mailpoet/assets/js/src/wizard/steps/woocommerce_step.tsx index 89a8eaa379..b8be303569 100644 --- a/mailpoet/assets/js/src/wizard/steps/woocommerce_step.tsx +++ b/mailpoet/assets/js/src/wizard/steps/woocommerce_step.tsx @@ -30,7 +30,7 @@ function WizardWooCommerceStep({ if (importType === null || allowed === null) { return false; } - submitForm(importType, allowed === 'true'); + submitForm(importType, allowed === true); return false; }; diff --git a/mailpoet/tests/acceptance/WelcomeWizard/WelcomeWizardCest.php b/mailpoet/tests/acceptance/WelcomeWizard/WelcomeWizardCest.php index 8fdcf52211..0a050f1026 100644 --- a/mailpoet/tests/acceptance/WelcomeWizard/WelcomeWizardCest.php +++ b/mailpoet/tests/acceptance/WelcomeWizard/WelcomeWizardCest.php @@ -51,7 +51,7 @@ class WelcomeWizardCest { // Third step of the wizard $i->waitForText('Power up your WooCommerce store'); - $i->click('.mailpoet-form-yesno-no'); + $i->click('.mailpoet-form-yesno-yes'); $i->click('.mailpoet-wizard-continue-button'); // Fourth step of the wizard