Update onboarding email marketing checkbox default to false (#33292)
This commit is contained in:
parent
b166d45986
commit
1e03b68598
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: dev
|
||||
|
||||
Update email marketing checkbox assertion.
|
|
@ -79,8 +79,8 @@ export class StoreDetailsSection extends BasePage {
|
|||
config.get( 'addresses.admin.store.email' )
|
||||
);
|
||||
|
||||
// Verify that checkbox next to "Get tips, product updates and inspiration straight to your mailbox" is selected
|
||||
await this.checkMarketingCheckbox( true );
|
||||
// Verify that the marketing checkbox is opt-in by default (WordPress.org Plugin Review Team requirement).
|
||||
await this.checkMarketingCheckbox( false );
|
||||
}
|
||||
|
||||
async fillAddress( address: string ): Promise< void > {
|
||||
|
|
|
@ -523,10 +523,12 @@ export default compose(
|
|||
city: settings.woocommerce_store_city || '',
|
||||
countryState,
|
||||
postCode: settings.woocommerce_store_postcode || '',
|
||||
|
||||
// By default, the marketing checkbox should be unticked by default to comply with WordPress.org plugin review guidelines.
|
||||
isAgreeMarketing:
|
||||
typeof profileItems.is_agree_marketing === 'boolean'
|
||||
? profileItems.is_agree_marketing
|
||||
: true,
|
||||
: false,
|
||||
storeEmail:
|
||||
typeof profileItems.store_email === 'string'
|
||||
? profileItems.store_email
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: update
|
||||
|
||||
Update email marketing checkbox to be unticked by default.
|
Loading…
Reference in New Issue