Skip to content

Commit 81ec863

Browse files
committed
test: update snaps
1 parent 87f7d3c commit 81ec863

File tree

17 files changed

+126
-56
lines changed

17 files changed

+126
-56
lines changed
Loading
Loading
Loading
Loading

tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/headings-json-chromium-linux.json

Lines changed: 77 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,79 @@
77
{
88
"type": "blockContainer",
99
"attrs": {
10-
"id": "4",
10+
"id": "0",
11+
"textColor": "default",
12+
"backgroundColor": "default"
13+
},
14+
"content": [
15+
{
16+
"type": "heading",
17+
"attrs": {
18+
"textAlignment": "left",
19+
"level": 1,
20+
"isToggleable": false
21+
},
22+
"content": [
23+
{
24+
"type": "text",
25+
"text": "Heading"
26+
}
27+
]
28+
}
29+
]
30+
},
31+
{
32+
"type": "blockContainer",
33+
"attrs": {
34+
"id": "1",
35+
"textColor": "default",
36+
"backgroundColor": "default"
37+
},
38+
"content": [
39+
{
40+
"type": "heading",
41+
"attrs": {
42+
"textAlignment": "left",
43+
"level": 2,
44+
"isToggleable": false
45+
},
46+
"content": [
47+
{
48+
"type": "text",
49+
"text": "Heading"
50+
}
51+
]
52+
}
53+
]
54+
},
55+
{
56+
"type": "blockContainer",
57+
"attrs": {
58+
"id": "2",
59+
"textColor": "default",
60+
"backgroundColor": "default"
61+
},
62+
"content": [
63+
{
64+
"type": "heading",
65+
"attrs": {
66+
"textAlignment": "left",
67+
"level": 3,
68+
"isToggleable": false
69+
},
70+
"content": [
71+
{
72+
"type": "text",
73+
"text": "Heading"
74+
}
75+
]
76+
}
77+
]
78+
},
79+
{
80+
"type": "blockContainer",
81+
"attrs": {
82+
"id": "3",
1183
"textColor": "default",
1284
"backgroundColor": "default"
1385
},
@@ -23,7 +95,7 @@
2395
{
2496
"type": "blockContainer",
2597
"attrs": {
26-
"id": "6",
98+
"id": "5",
2799
"textColor": "default",
28100
"backgroundColor": "default"
29101
},
@@ -47,7 +119,7 @@
47119
{
48120
"type": "blockContainer",
49121
"attrs": {
50-
"id": "7",
122+
"id": "6",
51123
"textColor": "default",
52124
"backgroundColor": "default"
53125
},
@@ -71,7 +143,7 @@
71143
{
72144
"type": "blockContainer",
73145
"attrs": {
74-
"id": "8",
146+
"id": "7",
75147
"textColor": "default",
76148
"backgroundColor": "default"
77149
},
@@ -95,7 +167,7 @@
95167
{
96168
"type": "blockContainer",
97169
"attrs": {
98-
"id": "9",
170+
"id": "8",
99171
"textColor": "default",
100172
"backgroundColor": "default"
101173
},
Loading

tests/src/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentMultipleBlocks-webkit-linux.json

Lines changed: 19 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -76,33 +76,28 @@
7676
"text": "Heading"
7777
}
7878
]
79-
},
79+
}
80+
]
81+
},
82+
{
83+
"type": "blockContainer",
84+
"attrs": {
85+
"id": "3",
86+
"textColor": "default",
87+
"backgroundColor": "default"
88+
},
89+
"content": [
8090
{
81-
"type": "blockGroup",
91+
"type": "heading",
92+
"attrs": {
93+
"textAlignment": "left",
94+
"level": 3,
95+
"isToggleable": false
96+
},
8297
"content": [
8398
{
84-
"type": "blockContainer",
85-
"attrs": {
86-
"id": "3",
87-
"textColor": "default",
88-
"backgroundColor": "default"
89-
},
90-
"content": [
91-
{
92-
"type": "heading",
93-
"attrs": {
94-
"textAlignment": "left",
95-
"level": 3,
96-
"isToggleable": false
97-
},
98-
"content": [
99-
{
100-
"type": "text",
101-
"text": "Heading"
102-
}
103-
]
104-
}
105-
]
99+
"type": "text",
100+
"text": "Heading"
106101
}
107102
]
108103
}

tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesMarks-json-webkit-linux.json

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,29 @@
2020
"content": [
2121
{
2222
"type": "text",
23-
"text": "ParagraphPa"
24-
},
25-
{
26-
"type": "text",
27-
"marks": [
28-
{
29-
"type": "italic"
30-
}
31-
],
32-
"text": "ragra"
33-
},
23+
"text": "Paragraph"
24+
}
25+
]
26+
}
27+
]
28+
},
29+
{
30+
"type": "blockContainer",
31+
"attrs": {
32+
"id": "1",
33+
"textColor": "default",
34+
"backgroundColor": "default"
35+
},
36+
"content": [
37+
{
38+
"type": "paragraph",
39+
"attrs": {
40+
"textAlignment": "left"
41+
},
42+
"content": [
3443
{
3544
"type": "text",
36-
"text": "ph"
45+
"text": "Paph"
3746
}
3847
]
3948
}

tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspaceStartOfBlock-json-webkit-linux.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,9 @@
1313
},
1414
"content": [
1515
{
16-
"type": "heading",
16+
"type": "paragraph",
1717
"attrs": {
18-
"textAlignment": "left",
19-
"level": 1,
20-
"isToggleable": false
18+
"textAlignment": "left"
2119
},
2220
"content": [
2321
{

tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesNestedBlocks-json-chromium-linux.json

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,7 @@
1818
"textAlignment": "left",
1919
"level": 1,
2020
"isToggleable": false
21-
},
22-
"content": [
23-
{
24-
"type": "text",
25-
"text": "H"
26-
}
27-
]
21+
}
2822
}
2923
]
3024
},
@@ -37,14 +31,16 @@
3731
},
3832
"content": [
3933
{
40-
"type": "paragraph",
34+
"type": "heading",
4135
"attrs": {
42-
"textAlignment": "left"
36+
"textAlignment": "left",
37+
"level": 1,
38+
"isToggleable": false
4339
},
4440
"content": [
4541
{
4642
"type": "text",
47-
"text": "eading"
43+
"text": "Heading"
4844
}
4945
]
5046
},

0 commit comments

Comments
 (0)