Skip to content

Commit

Permalink
Add test for files within styles/
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Jun 14, 2024
1 parent ebc79f4 commit 21ffdee
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions features/makepot.feature
Original file line number Diff line number Diff line change
Expand Up @@ -3775,6 +3775,18 @@ Feature: Generate a POT file of a WordPress project
}
}
}
},
"styles": {
"blocks": {
"variations": {
"myVariation": {
"title": "My variation",
"color": {
"background": "grey"
}
}
}
}
}
}
"""
Expand All @@ -3792,6 +3804,18 @@ Feature: Generate a POT file of a WordPress project
}
}
}
},
"styles": {
"blocks": {
"variations": {
"otherVariation": {
"title": "My other variation",
"color": {
"background": "grey"
}
}
}
}
}
}
"""
Expand All @@ -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
Expand Down

0 comments on commit 21ffdee

Please sign in to comment.