diff --git a/features/makepot.feature b/features/makepot.feature index 6be84b9..a955a3d 100644 --- a/features/makepot.feature +++ b/features/makepot.feature @@ -3809,7 +3809,7 @@ Feature: Generate a POT file of a WordPress project } } """ - And a foo-theme/incorrect/styles/my-style.json file: + And a foo-theme/styles/deeply/nested/variation.json file: """ { "version": "1", @@ -3826,6 +3826,23 @@ Feature: Generate a POT file of a WordPress project } } """ + And a foo-theme/incorrect/styles/my-style.json file: + """ + { + "version": "1", + "settings": { + "blocks": { + "core/paragraph": { + "color": { + "palette": [ + { "slug": "red", "color": "#ff00000", "name": "Red" } + ] + } + } + } + } + } + """ When I try `wp i18n make-pot foo-theme` Then STDOUT should contain: @@ -3838,10 +3855,15 @@ Feature: Generate a POT file of a WordPress project msgctxt "Color name" msgid "Black" """ - And the foo-theme/foo-theme.pot file should not contain: + And the foo-theme/foo-theme.pot file should contain: """ + msgctxt "Color name" msgid "White" """ + And the foo-theme/foo-theme.pot file should not contain: + """ + msgid "Red" + """ Scenario: Extract strings from the patterns directory Given an empty foo-theme/patterns directory