You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run `wp post create block-content.txt --post_title='Block Post' --porcelain`
1081
1097
Then save STDOUT as {POST_ID}
1082
1098
1083
1099
When I try `wp post block extract {POST_ID}`
@@ -1094,7 +1110,11 @@ Feature: Manage blocks in post content
1094
1110
@require-wp-5.0
1095
1111
Scenario: Check for nested block inside group
1096
1112
Given a WP install
1097
-
When I run `wp post create --post_title='Nested' --post_content='<!-- wp:group --><!-- wp:paragraph --><p>Nested para</p><!-- /wp:paragraph --><!-- /wp:group -->' --porcelain`
When I run `wp post create block-content.txt --post_title='Test' --porcelain`
1118
1142
Then save STDOUT as {POST_ID}
1119
1143
1120
1144
# "core/para" should NOT match "core/paragraph"
@@ -1226,10 +1250,18 @@ Feature: Manage blocks in post content
1226
1250
@require-wp-5.0
1227
1251
Scenario: Count blocks filtered by post type
1228
1252
Given a WP install
1229
-
When I run `wp post create --post_title="Post" --post_type=post --post_content="<!-- wp:paragraph --><p>Post</p><!-- /wp:paragraph -->" --post_status=publish --porcelain`
When I run `wp post create block-content-1.txt --post_title='Post' --post_type=post --post_status=publish --porcelain`
1230
1258
Then save STDOUT as {POST_ID}
1231
1259
1232
-
When I run `wp post create --post_title='Page' --post_type=page --post_content='<!-- wp:heading --><h2>Page</h2><!-- /wp:heading -->' --post_status=publish --porcelain`
When I run `wp post create block-content-2.txt --post_title='Page' --post_type=page --post_status=publish --porcelain`
1233
1265
Then save STDOUT as {PAGE_ID}
1234
1266
1235
1267
When I run `wp post block count {POST_ID} --post-type=post`
@@ -1245,7 +1277,11 @@ Feature: Manage blocks in post content
1245
1277
@require-wp-5.0
1246
1278
Scenario: Count blocks filtered by post status
1247
1279
Given a WP install
1248
-
When I run `wp post create --post_title='Published' --post_content='<!-- wp:paragraph --><p>Pub</p><!-- /wp:paragraph -->' --post_status=publish --porcelain`
When I run `wp post create block-content.txt --post_title='Published' --post_status=publish --porcelain`
1249
1285
Then save STDOUT as {PUB_ID}
1250
1286
1251
1287
When I run `wp post create --post_title="Draft" --post_content="<!-- wp:heading --><h2>Draft</h2><!-- /wp:heading -->" --post_status=draft --porcelain`
@@ -1601,7 +1637,11 @@ Feature: Manage blocks in post content
1601
1637
@require-wp-5.0
1602
1638
Scenario: Clone nested block preserves children
1603
1639
Given a WP install
1604
-
When I run `wp post create --post_title='Test' --post_content='<!-- wp:group --><!-- wp:paragraph --><p>Inner</p><!-- /wp:paragraph --><!-- /wp:group -->' --porcelain`
When I run `wp post create block-content.txt --post_title='Deep' --porcelain`
1685
1729
Then save STDOUT as {POST_ID}
1686
1730
1687
1731
When I run `wp post block list {POST_ID} --nested`
@@ -1785,7 +1829,11 @@ Feature: Manage blocks in post content
1785
1829
@require-wp-5.0
1786
1830
Scenario: Extract attribute in various formats
1787
1831
Given a WP install
1788
-
When I run `wp post create --post_title='Test' --post_content='<!-- wp:heading {"level":2} --><h2>One</h2><!-- /wp:heading --><!-- wp:heading {"level":3} --><h3>Two</h3><!-- /wp:heading -->' --porcelain`
When I run `wp post create block-content.txt --post_title='Test' --porcelain`
1789
1837
Then save STDOUT as {POST_ID}
1790
1838
1791
1839
When I run `wp post block extract {POST_ID} --block=core/heading --attr=level --format=json`
@@ -1803,7 +1851,11 @@ Feature: Manage blocks in post content
1803
1851
@require-wp-5.0
1804
1852
Scenario: Extract with both block and index filters
1805
1853
Given a WP install
1806
-
When I run `wp post create --post_title='Test' --post_content='<!-- wp:paragraph --><p>Para</p><!-- /wp:paragraph --><!-- wp:heading {"level":2} --><h2>Title</h2><!-- /wp:heading -->' --porcelain`
0 commit comments