@@ -569,7 +569,11 @@ Feature: Manage WordPress posts
569569
570570 @require-wp-5.0
571571 Scenario : Get block_version field for post with blocks
572- When I run `wp post create --post_title='Block Post' --post_content='<!-- wp:paragraph --><p>Hello block world</p><!-- /wp:paragraph -->' --porcelain`
572+ Given a block-post.html file:
573+ """
574+ <!-- wp:paragraph --><p>Hello block world</p><!-- /wp:paragraph -->
575+ """
576+ When I run `wp post create block-post.html --post_title='Block Post' --porcelain`
573577 Then STDOUT should be a number
574578 And save STDOUT as {POST_ID}
575579
@@ -581,7 +585,11 @@ Feature: Manage WordPress posts
581585
582586 @require-wp-5.0
583587 Scenario : Get block_version field for post without blocks
584- When I run `wp post create --post_title='Classic Post' --post_content='<p>Just plain HTML</p>' --porcelain`
588+ Given a classic-post.html file:
589+ """
590+ <p>Just plain HTML</p>
591+ """
592+ When I run `wp post create classic-post.html --post_title='Classic Post' --porcelain`
585593 Then STDOUT should be a number
586594 And save STDOUT as {POST_ID}
587595
@@ -593,7 +601,11 @@ Feature: Manage WordPress posts
593601
594602 @require-wp-5.0
595603 Scenario : Get block_version field included in default output
596- When I run `wp post create --post_title='Test Post' --post_content='<!-- wp:heading --><h2>Title</h2><!-- /wp:heading -->' --porcelain`
604+ Given a heading-post.html file:
605+ """
606+ <!-- wp:heading --><h2>Title</h2><!-- /wp:heading -->
607+ """
608+ When I run `wp post create heading-post.html --post_title='Test Post' --porcelain`
597609 Then STDOUT should be a number
598610 And save STDOUT as {POST_ID}
599611
0 commit comments