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='Deep' --porcelain`
1329
1341
Then save STDOUT as {POST_ID}
1330
1342
1331
1343
When I run `wp post block parse {POST_ID}`
@@ -1357,7 +1369,11 @@ Feature: Manage blocks in post content
1357
1369
@require-wp-5.0
1358
1370
Scenario: Render nested blocks
1359
1371
Given a WP install
1360
-
When I run `wp post create --post_title='Nested' --post_content='<!-- wp:group {"className":"test-group"} --><!-- wp:paragraph --><p>Inner</p><!-- /wp:paragraph --><!-- /wp:group -->' --porcelain`
When I run `wp post create block-content.txt --post_title='Nested' --porcelain`
1361
1377
Then save STDOUT as {POST_ID}
1362
1378
1363
1379
When I run `wp post block render {POST_ID}`
@@ -1503,7 +1519,11 @@ Feature: Manage blocks in post content
1503
1519
@require-wp-5.0
1504
1520
Scenario: Replace block preserves content
1505
1521
Given a WP install
1506
-
When I run `wp post create --post_title='Test' --post_content='<!-- wp:paragraph --><p>Keep this text</p><!-- /wp:paragraph -->' --porcelain`
1522
+
And a block-content.txt file:
1523
+
"""
1524
+
<!-- wp:paragraph --><p>Keep this text</p><!-- /wp:paragraph -->
1525
+
"""
1526
+
When I run `wp post create block-content.txt --post_title='Test' --porcelain`
1507
1527
Then save STDOUT as {POST_ID}
1508
1528
1509
1529
When I run `wp post block replace {POST_ID} core/paragraph core/verse`
@@ -1521,7 +1541,11 @@ Feature: Manage blocks in post content
1521
1541
@require-wp-5.0
1522
1542
Scenario: Get nested block shows inner blocks
1523
1543
Given a WP install
1524
-
When I run `wp post create --post_title='Test' --post_content='<!-- wp:group --><!-- wp:paragraph --><p>Inner</p><!-- /wp:paragraph --><!-- /wp:group -->' --porcelain`
0 commit comments