@@ -3717,51 +3717,6 @@ Feature: Generate a POT file of a WordPress project
37173717 msgid "My style variation"
37183718 """
37193719
3720- Scenario : Extract strings from the styles.blocks.variations section of theme.json files
3721- Given an empty foo-theme directory
3722- And a foo-theme/theme.json file:
3723- """
3724- {
3725- "version": "1",
3726- "settings": {
3727- "color": {
3728- "duotone": [
3729- { "slug": "dark-grayscale", "name": "Dark grayscale", "colors": [] }
3730- ]
3731- }
3732- },
3733- "styles": {
3734- "blocks": {
3735- "variations": {
3736- "variationSlug": {
3737- "title": "My variation",
3738- "color": {
3739- "background": "grey"
3740- }
3741- }
3742- }
3743- }
3744- }
3745- }
3746- """
3747-
3748- When I try `wp i18n make-pot foo-theme`
3749- Then STDOUT should be:
3750- """
3751- Success: POT file successfully generated.
3752- """
3753- And the foo-theme/foo-theme.pot file should exist
3754- And the foo-theme/foo-theme.pot file should contain:
3755- """
3756- msgctxt "Duotone name"
3757- msgid "Dark grayscale"
3758- """
3759- And the foo-theme/foo-theme.pot file should contain:
3760- """
3761- msgctxt "Style variation name"
3762- msgid "My variation"
3763- """
3764-
37653720 Scenario : Extract strings from the blocks section of theme.json files
37663721 Given an empty foo-theme directory
37673722 And a foo-theme/theme.json file:
@@ -3810,18 +3765,6 @@ Feature: Generate a POT file of a WordPress project
38103765 }
38113766 }
38123767 }
3813- },
3814- "styles": {
3815- "blocks": {
3816- "variations": {
3817- "myVariation": {
3818- "title": "My variation",
3819- "color": {
3820- "background": "grey"
3821- }
3822- }
3823- }
3824- }
38253768 }
38263769 }
38273770 """
@@ -3839,18 +3782,6 @@ Feature: Generate a POT file of a WordPress project
38393782 }
38403783 }
38413784 }
3842- },
3843- "styles": {
3844- "blocks": {
3845- "variations": {
3846- "otherVariation": {
3847- "title": "My other variation",
3848- "color": {
3849- "background": "grey"
3850- }
3851- }
3852- }
3853- }
38543785 }
38553786 }
38563787 """
@@ -3866,20 +3797,10 @@ Feature: Generate a POT file of a WordPress project
38663797 msgctxt "Color name"
38673798 msgid "Black"
38683799 """
3869- And the foo-theme/foo-theme.pot file should contain:
3870- """
3871- msgctxt "Style variation name"
3872- msgid "My variation"
3873- """
38743800 And the foo-theme/foo-theme.pot file should not contain:
38753801 """
38763802 msgid "White"
38773803 """
3878- And the foo-theme/foo-theme.pot file should not contain:
3879- """
3880- msgctxt "Style variation name"
3881- msgid "My other variation"
3882- """
38833804
38843805 Scenario : Extract strings from the patterns directory
38853806 Given an empty foo-theme/patterns directory
0 commit comments