Added necessary merchant login calls

This commit is contained in:
del 2021-05-20 18:27:12 +08:00
parent e7b8591d5c
commit d66f1b7075
2 changed files with 2 additions and 0 deletions

View File

@ -31,6 +31,7 @@ const runCartRedirectionTest = () => {
simplePostIdValue = await createSimpleProduct();
// Set checkbox in settings to enable cart redirection
await merchant.login();
await merchant.openSettings('products');
await setCheckbox('#woocommerce_cart_redirect_after_add');
await settingsPageSaveChanges();

View File

@ -29,6 +29,7 @@ const runCheckoutLoginAccountTest = () => {
await createSimpleProduct();
// Set checkbox for logging to account during checkout
await merchant.login();
await merchant.openSettings('account');
await setCheckbox('#woocommerce_enable_checkout_login_reminder');
await settingsPageSaveChanges();