File tree Expand file tree Collapse file tree 1 file changed +19
-3
lines changed
Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -127,9 +127,15 @@ Feature: Manage blocks in post content
127127 Then save STDOUT as {POST_ID}
128128
129129 When I run `wp post block render {POST_ID}`
130+ # In WordPress 7.0+ paragraph blocks are rendered with a class name.
131+ # See https://github.com/WordPress/gutenberg/pull/71207.
130132 Then STDOUT should contain:
131133 """
132- <p>Hello World</p>
134+ <p
135+ """
136+ And STDOUT should contain:
137+ """
138+ >Hello World</p>
133139 """
134140 And STDOUT should contain:
135141 """
@@ -143,7 +149,11 @@ Feature: Manage blocks in post content
143149 When I run `wp post block render {POST_ID} --block=core/paragraph`
144150 Then STDOUT should contain:
145151 """
146- <p>Hello World</p>
152+ <p
153+ """
154+ And STDOUT should contain:
155+ """
156+ >Hello World</p>
147157 """
148158 And STDOUT should not contain:
149159 """
@@ -773,9 +783,15 @@ Feature: Manage blocks in post content
773783 Then save STDOUT as {POST_ID}
774784
775785 When I run `wp post block export {POST_ID} --format=html`
786+ # In WordPress 7.0+ paragraph blocks are rendered with a class name.
787+ # See https://github.com/WordPress/gutenberg/pull/71207.
776788 Then STDOUT should contain:
777789 """
778- <p>Hello World</p>
790+ <p
791+ """
792+ And STDOUT should contain:
793+ """
794+ >Hello World</p>
779795 """
780796
781797 @require-wp-5.0
You can’t perform that action at this time.
0 commit comments