Fix tracking settings configuration on WooCommerce setup wizard step
When testing the woo wizard step i noticed that always set tracking to 'partial' even if the checkbox is checked. When debugging I found that the allowed value is not a string but boolean. I tested this in wizard and also on the WooCommerce setup page. I needed to update the acceptance test because it was clicking on 'no' and asserting the outcome as 'yes' was clicked. [MAILPOET-5059]
This commit is contained in:
@@ -30,7 +30,7 @@ function WizardWooCommerceStep({
|
||||
if (importType === null || allowed === null) {
|
||||
return false;
|
||||
}
|
||||
submitForm(importType, allowed === 'true');
|
||||
submitForm(importType, allowed === true);
|
||||
return false;
|
||||
};
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user