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
Copy file name to clipboardExpand all lines: features/post-block.feature
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@ Feature: Manage blocks in post content
50
50
@require-wp-5.0
51
51
Scenario: Parse blocks in a post
52
52
Given a WP install
53
-
When I run `wp post create --post_title='Block Post' --post_content='<!-- wp:paragraph {"align":"center"} --><p>Hello</p><!-- /wp:paragraph -->' --porcelain`
53
+
When I run `wp post create --post_title="Block Post" --post_content="<!-- wp:paragraph {\"align\":\"center\"} --><p>Hello</p><!-- /wp:paragraph -->" --porcelain`
54
54
Then save STDOUT as {POST_ID}
55
55
56
56
When I run `wp post block parse {POST_ID}`
@@ -344,7 +344,7 @@ Feature: Manage blocks in post content
344
344
@require-wp-5.0
345
345
Scenario: Replace block with new attributes
346
346
Given a WP install
347
-
When I run `wp post create --post_title='Block Post' --post_content='<!-- wp:heading {"level":2} --><h2>Title</h2><!-- /wp:heading -->' --porcelain`
347
+
When I run `wp post create --post_title="Block Post" --post_content="<!-- wp:heading {\"level\":2} --><h2>Title</h2><!-- /wp:heading -->" --porcelain`
348
348
Then save STDOUT as {POST_ID}
349
349
350
350
When I run `wp post block replace {POST_ID} core/heading core/heading --attrs='{"level":4}'`
@@ -429,7 +429,7 @@ Feature: Manage blocks in post content
429
429
@require-wp-5.0
430
430
Scenario: Get a block by index
431
431
Given a WP install
432
-
When I run `wp post create --post_title='Block Post' --post_content='<!-- wp:paragraph {"align":"center"} --><p>First</p><!-- /wp:paragraph --><!-- wp:heading {"level":2} --><h2>Title</h2><!-- /wp:heading -->' --porcelain`
432
+
When I run `wp post create --post_title="Block Post" --post_content="<!-- wp:paragraph {\"align\":\"center\"} --><p>First</p><!-- /wp:paragraph --><!-- wp:heading {\"level\":2} --><h2>Title</h2><!-- /wp:heading -->" --porcelain`
433
433
Then save STDOUT as {POST_ID}
434
434
435
435
When I run `wp post block get {POST_ID} 0`
@@ -487,7 +487,7 @@ Feature: Manage blocks in post content
487
487
@require-wp-5.0
488
488
Scenario: Update block attributes
489
489
Given a WP install
490
-
When I run `wp post create --post_title='Block Post' --post_content='<!-- wp:heading {"level":2} --><h2>Title</h2><!-- /wp:heading -->' --porcelain`
490
+
When I run `wp post create --post_title="Block Post" --post_content="<!-- wp:heading {\"level\":2} --><h2>Title</h2><!-- /wp:heading -->" --porcelain`
491
491
Then save STDOUT as {POST_ID}
492
492
493
493
When I run `wp post block update {POST_ID} 0 --attrs='{"level":3}'`
@@ -505,7 +505,7 @@ Feature: Manage blocks in post content
505
505
@require-wp-5.0
506
506
Scenario: Update heading level syncs HTML tag
507
507
Given a WP install
508
-
When I run `wp post create --post_title='Block Post' --post_content='<!-- wp:heading {"level":2} --><h2>Original Title</h2><!-- /wp:heading -->' --porcelain`
508
+
When I run `wp post create --post_title="Block Post" --post_content="<!-- wp:heading {\"level\":2} --><h2>Original Title</h2><!-- /wp:heading -->" --porcelain`
509
509
Then save STDOUT as {POST_ID}
510
510
511
511
When I run `wp post block update {POST_ID} 0 --attrs='{"level":4}'`
@@ -617,7 +617,7 @@ Feature: Manage blocks in post content
617
617
@require-wp-5.0
618
618
Scenario: Update block with replace-attrs flag
619
619
Given a WP install
620
-
When I run `wp post create --post_title='Block Post' --post_content='<!-- wp:heading {"level":2,"align":"center"} --><h2 class="has-text-align-center">Title</h2><!-- /wp:heading -->' --porcelain`
620
+
When I run `wp post create --post_title="Block Post" --post_content="<!-- wp:heading {\"level\":2,\"align\":\"center\"} --><h2 class=\"has-text-align-center\">Title</h2><!-- /wp:heading -->" --porcelain`
621
621
Then save STDOUT as {POST_ID}
622
622
623
623
When I run `wp post block update {POST_ID} 0 --attrs='{"level":4}' --replace-attrs`
0 commit comments