File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
app/src/androidTest/kotlin/org/wordpress/aztec/demo/tests Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff 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 & 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} /-->" +
You can’t perform that action at this time.
0 commit comments