Skip to content

Commit 0ba2e2c

Browse files
committed
Add another GB compat test for cover image
1 parent b065aab commit 0ba2e2c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

app/src/androidTest/kotlin/org/wordpress/aztec/demo/tests/GutenbergCompatTests.kt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,21 @@ class GutenbergCompatTests : BaseTest() {
5151
.verifyHTML(html)
5252
}
5353

54+
@Test
55+
fun testRetainGutenbergPostContentWithCoverImage() {
56+
val html = "<!-- wp:cover-image {\"url\":\"https://cldup.com/Fz-ASbo2s3.jpg\",\"align\":\"wide\"} -->" +
57+
"<div class=\"wp-block-cover-image has-background-dim alignwide\" style=\"background-image:url('https://cldup.com/Fz-ASbo2s3.jpg');\">" +
58+
" <p class=\"wp-block-cover-image-text\">Of Mountains &amp; Printing Presses</p>" +
59+
"</div>" +
60+
"<!-- /wp:cover-image -->"
61+
62+
EditorPage().toggleHtml()
63+
.insertHTML(html)
64+
.toggleHtml()
65+
.toggleHtml()
66+
.verifyHTML(html)
67+
}
68+
5469
@Test
5570
fun testRetainGutenbergPostContentAndInlineGutenbergComment() {
5671
val html = "<!-- wp:latest-posts {\"postsToShow\":4,\"displayPostDate\":true} /-->" +

0 commit comments

Comments
 (0)