Skip to content

Commit 502636a

Browse files
committed
Fix broken multi-line test step
1 parent be0c029 commit 502636a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

features/post-block.feature

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff 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}`

0 commit comments

Comments
 (0)