Update onboarding email marketing checkbox default to false (#33292)

This commit is contained in:
Adrian Duffell 2022-06-13 09:55:57 +08:00 committed by GitHub
parent b166d45986
commit 1e03b68598
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 3 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: dev
Update email marketing checkbox assertion.

View File

@ -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 > {

View File

@ -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

View File

@ -0,0 +1,4 @@
Significance: patch
Type: update
Update email marketing checkbox to be unticked by default.