-
Notifications
You must be signed in to change notification settings - Fork 4k
/
inserting-blocks.test.js.snap
118 lines (93 loc) · 3 KB
/
inserting-blocks.test.js.snap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Inserting blocks Should insert content using the placeholder and the regular inserter 1`] = `
"<!-- wp:paragraph -->
<p>Paragraph block</p>
<!-- /wp:paragraph -->
<!-- wp:quote -->
<blockquote class=\\"wp-block-quote\\"><p>Quote block</p></blockquote>
<!-- /wp:quote -->
<!-- wp:image -->
<figure class=\\"wp-block-image\\"><img alt=\\"\\"/></figure>
<!-- /wp:image -->
<!-- wp:paragraph -->
<p></p>
<!-- /wp:paragraph -->"
`;
exports[`Inserting blocks Should insert content using the placeholder and the regular inserter 2`] = `
"<!-- wp:paragraph -->
<p>Paragraph block</p>
<!-- /wp:paragraph -->
<!-- wp:quote -->
<blockquote class=\\"wp-block-quote\\"><p>Quote block</p></blockquote>
<!-- /wp:quote -->"
`;
exports[`Inserting blocks Should insert content using the placeholder and the regular inserter 3`] = `
"<!-- wp:paragraph -->
<p>Paragraph block</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>Second paragraph</p>
<!-- /wp:paragraph -->
<!-- wp:quote -->
<blockquote class=\\"wp-block-quote\\"><p>Quote block</p></blockquote>
<!-- /wp:quote -->
<!-- wp:preformatted -->
<pre class=\\"wp-block-preformatted\\">Pre text
Foo</pre>
<!-- /wp:preformatted -->
<!-- wp:shortcode -->
[myshortcode]With multiple
lines preserved[/myshortcode]
<!-- /wp:shortcode -->"
`;
exports[`Inserting blocks inserts a block in proper place after having clicked \`Browse All\` from block appender 1`] = `
"<!-- wp:group -->
<div class=\\"wp-block-group\\"><!-- wp:paragraph -->
<p>Paragraph inside group</p>
<!-- /wp:paragraph --></div>
<!-- /wp:group -->
<!-- wp:paragraph -->
<p>Paragraph after group</p>
<!-- /wp:paragraph -->"
`;
exports[`Inserting blocks inserts a block in proper place after having clicked \`Browse All\` from inline inserter 1`] = `
"<!-- wp:paragraph -->
<p>First paragraph</p>
<!-- /wp:paragraph -->
<!-- wp:heading -->
<h2 id=\\"wp-heading\\">Heading</h2>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<p>Second paragraph</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>Third paragraph</p>
<!-- /wp:paragraph -->"
`;
exports[`Inserting blocks inserts a block in proper place after having clicked \`Browse All\` from inline inserter 2`] = `
"<!-- wp:paragraph -->
<p>First paragraph</p>
<!-- /wp:paragraph -->
<!-- wp:cover -->
<div class=\\"wp-block-cover has-background-dim\\"><div class=\\"wp-block-cover__inner-container\\"></div></div>
<!-- /wp:cover -->
<!-- wp:heading -->
<h2 id=\\"wp-heading\\">Heading</h2>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<p>Second paragraph</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>Third paragraph</p>
<!-- /wp:paragraph -->"
`;
exports[`Inserting blocks inserts blocks at root level when using the root appender while selection is in an inner block 1`] = `
"<!-- wp:buttons -->
<div class=\\"wp-block-buttons\\"><!-- wp:button -->
<div class=\\"wp-block-button\\"><a class=\\"wp-block-button__link\\">1.1</a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons -->
<!-- wp:paragraph -->
<p>2</p>
<!-- /wp:paragraph -->"
`;