Skip to content

Commit 4ce213f

Browse files
Copilotswissspidy
andcommitted
Add test case for filtering patterns by category
Co-authored-by: swissspidy <[email protected]>
1 parent dd156dd commit 4ce213f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

features/pattern.feature

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ Feature: Manage WordPress block patterns
1717
[{"name":"core\/query-standard-posts","title":"Standard"}]
1818
"""
1919

20+
@require-wp-5.5
21+
Scenario: Filtering block patterns by category
22+
When I run `wp pattern list --category=buttons --format=count`
23+
Then STDOUT should match /^\d+$/
24+
2025
@require-wp-5.5
2126
Scenario: Getting a specific block pattern
2227
When I run `wp pattern list --format=csv --fields=name`

0 commit comments

Comments
 (0)