Skip to content

Commit ceb1d95

Browse files
test: snapshots
1 parent c977bf8 commit ceb1d95

File tree

2 files changed

+21
-11
lines changed

2 files changed

+21
-11
lines changed

src/test/__snapshots__/tooltip-attributes.spec.js.snap

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ exports[`tooltip attributes basic tooltip 1`] = `
44
<div>
55
<span
66
data-tooltip-content="Hello World!"
7-
id="basic-example-attr"
7+
data-tooltip-id="basic-example-attr"
88
>
99
Lorem Ipsum
1010
</span>
1111
<div
1212
class="react-tooltip react-tooltip__place-top react-tooltip__show"
13+
id="basic-example-attr"
1314
role="tooltip"
1415
style="left: 5px; top: -10px;"
1516
>
@@ -27,12 +28,13 @@ exports[`tooltip attributes tooltip with class name 1`] = `
2728
<span
2829
data-tooltip-class-name="tooltip-class-name"
2930
data-tooltip-content="Hello World!"
30-
id="example-class-name-attr"
31+
data-tooltip-id="example-class-name-attr"
3132
>
3233
Lorem Ipsum
3334
</span>
3435
<div
3536
class="react-tooltip tooltip-class-name react-tooltip__place-top react-tooltip__show"
37+
id="example-class-name-attr"
3638
role="tooltip"
3739
style="left: 5px; top: -10px;"
3840
>
@@ -49,13 +51,14 @@ exports[`tooltip attributes tooltip with place 1`] = `
4951
<div>
5052
<span
5153
data-tooltip-content="Hello World!"
54+
data-tooltip-id="example-place-attr"
5255
data-tooltip-place="right"
53-
id="example-place-attr"
5456
>
5557
Lorem Ipsum
5658
</span>
5759
<div
5860
class="react-tooltip react-tooltip__place-right react-tooltip__show"
61+
id="example-place-attr"
5962
role="tooltip"
6063
style="left: 10px; top: 5px;"
6164
>

src/test/__snapshots__/tooltip-props.spec.js.snap

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
exports[`tooltip props basic tooltip 1`] = `
44
<div>
55
<span
6-
id="basic-example"
6+
data-tooltip-id="basic-example"
77
>
88
Lorem Ipsum
99
</span>
1010
<div
1111
class="react-tooltip react-tooltip__place-top react-tooltip__show"
12+
id="basic-example"
1213
role="tooltip"
1314
style="left: 5px; top: -10px;"
1415
>
@@ -24,12 +25,13 @@ exports[`tooltip props basic tooltip 1`] = `
2425
exports[`tooltip props clickable tooltip 1`] = `
2526
<div>
2627
<span
27-
id="example-clickable"
28+
data-tooltip-id="example-clickable"
2829
>
2930
Lorem Ipsum
3031
</span>
3132
<div
3233
class="react-tooltip react-tooltip__place-top react-tooltip__show"
34+
id="example-clickable"
3335
role="tooltip"
3436
style="left: 5px; top: -10px;"
3537
>
@@ -47,12 +49,13 @@ exports[`tooltip props clickable tooltip 1`] = `
4749
exports[`tooltip props tooltip with custom position 1`] = `
4850
<div>
4951
<span
50-
id="example-place"
52+
data-tooltip-id="example-place"
5153
>
5254
Lorem Ipsum
5355
</span>
5456
<div
5557
class="react-tooltip react-tooltip__place-top react-tooltip__show"
58+
id="example-place"
5659
role="tooltip"
5760
style="left: 5px; top: -10px;"
5861
>
@@ -68,7 +71,7 @@ exports[`tooltip props tooltip with custom position 1`] = `
6871
exports[`tooltip props tooltip with delay hide 1`] = `
6972
<div>
7073
<span
71-
id="example-delay-hide"
74+
data-tooltip-id="example-delay-hide"
7275
>
7376
Lorem Ipsum
7477
</span>
@@ -78,12 +81,13 @@ exports[`tooltip props tooltip with delay hide 1`] = `
7881
exports[`tooltip props tooltip with delay show 1`] = `
7982
<div>
8083
<span
81-
id="example-delay-show"
84+
data-tooltip-id="example-delay-show"
8285
>
8386
Lorem Ipsum
8487
</span>
8588
<div
8689
class="react-tooltip react-tooltip__place-top react-tooltip__show"
90+
id="example-delay-show"
8791
role="tooltip"
8892
style="left: 5px; top: -10px;"
8993
>
@@ -99,12 +103,13 @@ exports[`tooltip props tooltip with delay show 1`] = `
99103
exports[`tooltip props tooltip with float 1`] = `
100104
<div>
101105
<span
102-
id="example-float"
106+
data-tooltip-id="example-float"
103107
>
104108
Lorem Ipsum
105109
</span>
106110
<div
107111
class="react-tooltip react-tooltip__place-top react-tooltip__show"
112+
id="example-float"
108113
role="tooltip"
109114
style="left: 5px; top: -10px;"
110115
>
@@ -120,12 +125,13 @@ exports[`tooltip props tooltip with float 1`] = `
120125
exports[`tooltip props tooltip with html 1`] = `
121126
<div>
122127
<span
123-
id="example-html"
128+
data-tooltip-id="example-html"
124129
>
125130
Lorem Ipsum
126131
</span>
127132
<div
128133
class="react-tooltip react-tooltip__place-top react-tooltip__show"
134+
id="example-html"
129135
role="tooltip"
130136
style="left: 5px; top: -10px;"
131137
>
@@ -146,12 +152,13 @@ exports[`tooltip props tooltip with html 1`] = `
146152
exports[`tooltip props tooltip with place 1`] = `
147153
<div>
148154
<span
149-
id="example-place"
155+
data-tooltip-id="example-place"
150156
>
151157
Lorem Ipsum
152158
</span>
153159
<div
154160
class="react-tooltip react-tooltip__place-right react-tooltip__show"
161+
id="example-place"
155162
role="tooltip"
156163
style="left: 10px; top: 5px;"
157164
>

0 commit comments

Comments
 (0)