diff --git a/features/makepot.feature b/features/makepot.feature index 853e4e3..2b34a03 100644 --- a/features/makepot.feature +++ b/features/makepot.feature @@ -3775,6 +3775,18 @@ Feature: Generate a POT file of a WordPress project } } } + }, + "styles": { + "blocks": { + "variations": { + "myVariation": { + "title": "My variation", + "color": { + "background": "grey" + } + } + } + } } } """ @@ -3792,6 +3804,18 @@ Feature: Generate a POT file of a WordPress project } } } + }, + "styles": { + "blocks": { + "variations": { + "otherVariation": { + "title": "My other variation", + "color": { + "background": "grey" + } + } + } + } } } """ @@ -3807,10 +3831,20 @@ Feature: Generate a POT file of a WordPress project msgctxt "Color name" msgid "Black" """ + And the foo-theme/foo-theme.pot file should contain: + """ + msgctxt "Style variation name" + msgid "My variation" + """ And the foo-theme/foo-theme.pot file should not contain: """ msgid "White" """ + And the foo-theme/foo-theme.pot file should not contain: + """ + msgctxt "Style variation name" + msgid "My other variation" + """ Scenario: Extract strings from the patterns directory Given an empty foo-theme/patterns directory