File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -1157,11 +1157,15 @@ Feature: Manage blocks in post content
11571157 @require-wp-5.0
11581158 Scenario : Post with mixed block and freeform content
11591159 Given a WP install
1160- When I run `wp post create --post_title='Mixed' --post_content='<!-- wp:paragraph --><p>Block</p><!-- /wp:paragraph -->
1160+ And a mixed-content.txt file:
1161+ """
1162+ <!-- wp:paragraph --><p>Block</p><!-- /wp:paragraph -->
11611163
1162- Some freeform text
1164+ Some freeform text
11631165
1164- <!-- wp:heading --><h2>Title</h2><!-- /wp:heading -->' --porcelain`
1166+ <!-- wp:heading --><h2>Title</h2><!-- /wp:heading -->
1167+ """
1168+ When I run `wp post create --post_title='Mixed' --porcelain < mixed-content.txt`
11651169 Then save STDOUT as {POST_ID}
11661170
11671171 When I run `wp post has-blocks {POST_ID}`
You can’t perform that action at this time.
0 commit comments