Skip to content

Commit 6be058e

Browse files
committed
fix: test case
1 parent a0ee93e commit 6be058e

File tree

4 files changed

+60
-0
lines changed

4 files changed

+60
-0
lines changed

src/components/flow/actions/action/__snapshots__/Action.test.ts.snap

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ exports[`ActionWrapper render should display hybrid style 1`] = `
1717
>
1818
<TitleBar
1919
__className="send_msg"
20+
onCopy={[Function]}
2021
onMoveUp={[Function]}
2122
onRemoval={[Function]}
2223
shouldCancelClick={[Function]}
24+
showCopy={true}
2325
showMove={false}
2426
showRemoval={true}
2527
title="Send Message"
@@ -49,9 +51,11 @@ exports[`ActionWrapper render should display missing_localization style 1`] = `
4951
>
5052
<TitleBar
5153
__className="send_msg"
54+
onCopy={[Function]}
5255
onMoveUp={[Function]}
5356
onRemoval={[Function]}
5457
shouldCancelClick={[Function]}
58+
showCopy={false}
5559
showMove={false}
5660
showRemoval={false}
5761
title="Send Message"
@@ -81,9 +85,11 @@ exports[`ActionWrapper render should display not_localizable style 1`] = `
8185
>
8286
<TitleBar
8387
__className="enter_flow"
88+
onCopy={[Function]}
8489
onMoveUp={[Function]}
8590
onRemoval={[Function]}
8691
shouldCancelClick={[Function]}
92+
showCopy={false}
8793
showMove={false}
8894
showRemoval={false}
8995
title="Enter a Flow"
@@ -113,9 +119,11 @@ exports[`ActionWrapper render should display translating style 1`] = `
113119
>
114120
<TitleBar
115121
__className="send_msg"
122+
onCopy={[Function]}
116123
onMoveUp={[Function]}
117124
onRemoval={[Function]}
118125
shouldCancelClick={[Function]}
126+
showCopy={false}
119127
showMove={false}
120128
showRemoval={false}
121129
title="Send Message"
@@ -132,9 +140,11 @@ exports[`ActionWrapper render should render self, children with base props 1`] =
132140
Object {
133141
"__className": "send_msg",
134142
"nodeUUID": undefined,
143+
"onCopy": [Function],
135144
"onMoveUp": [Function],
136145
"onRemoval": [Function],
137146
"shouldCancelClick": [Function],
147+
"showCopy": true,
138148
"showMove": false,
139149
"showRemoval": true,
140150
"title": "Send Message",
@@ -158,9 +168,11 @@ exports[`ActionWrapper render should render self, children with base props 2`] =
158168
>
159169
<TitleBar
160170
__className="send_msg"
171+
onCopy={[Function]}
161172
onMoveUp={[Function]}
162173
onRemoval={[Function]}
163174
shouldCancelClick={[Function]}
175+
showCopy={true}
164176
showMove={false}
165177
showRemoval={true}
166178
title="Send Message"
@@ -190,9 +202,11 @@ exports[`ActionWrapper render should show move icon 1`] = `
190202
>
191203
<TitleBar
192204
__className="send_msg"
205+
onCopy={[Function]}
193206
onMoveUp={[Function]}
194207
onRemoval={[Function]}
195208
shouldCancelClick={[Function]}
209+
showCopy={false}
196210
showMove={true}
197211
showRemoval={true}
198212
title="Send Message"

src/components/flow/actions/action/__snapshots__/Action.test.tsx.snap

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ exports[`ActionWrapper can have localized quick replies when empty on default la
3434
Send Message
3535
3636
</div>
37+
<div
38+
class="copy_button"
39+
data-testid="copy-icon"
40+
/>
3741
<div
3842
class="remove_button"
3943
data-testid="remove-icon"
@@ -109,6 +113,15 @@ exports[`ActionWrapper renders a base language 1`] = `
109113
Send Message
110114
111115
</div>
116+
<div
117+
class="copy_button"
118+
data-testid="copy-icon"
119+
>
120+
<temba-icon
121+
name="copy"
122+
size="1.2"
123+
/>
124+
</div>
112125
<div
113126
class="remove_button"
114127
data-testid="remove-icon"

src/components/flow/node/__snapshots__/Node.test.tsx.snap

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,15 @@ exports[`NodeComp renders a named random split 1`] = `
137137
Split Randomly
138138
139139
</div>
140+
<div
141+
class="copy_button"
142+
data-testid="copy-icon"
143+
>
144+
<temba-icon
145+
name="copy"
146+
size="1.2"
147+
/>
148+
</div>
140149
<div
141150
class="remove_button"
142151
data-testid="remove-icon"

src/components/titlebar/__snapshots__/TitleBar.test.tsx.snap

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ exports[`TitleBar render confirmation should render confirmation markup 1`] = `
3131
Send Message
3232
3333
</div>
34+
<div
35+
class="copy_button"
36+
data-testid="copy-icon"
37+
/>
3438
<div
3539
class="remove_button"
3640
data-testid="remove-icon"
@@ -99,6 +103,10 @@ exports[`TitleBar render move icon should call onMoveUp 1`] = `
99103
Send Message
100104
101105
</div>
106+
<div
107+
class="copy_button"
108+
data-testid="copy-icon"
109+
/>
102110
<div
103111
class="remove_button"
104112
data-testid="remove-icon"
@@ -135,6 +143,10 @@ exports[`TitleBar render move icon should render move icon 1`] = `
135143
Send Message
136144
137145
</div>
146+
<div
147+
class="copy_button"
148+
data-testid="copy-icon"
149+
/>
138150
<div
139151
class="remove_button"
140152
data-testid="remove-icon"
@@ -174,6 +186,10 @@ exports[`TitleBar render remove icon should render remove icon 1`] = `
174186
Send Message
175187
176188
</div>
189+
<div
190+
class="copy_button"
191+
data-testid="copy-icon"
192+
/>
177193
<div
178194
class="remove_button"
179195
data-testid="remove-icon"
@@ -210,6 +226,10 @@ exports[`TitleBar render should apply _className prop 1`] = `
210226
Send Message
211227
212228
</div>
229+
<div
230+
class="copy_button"
231+
data-testid="copy-icon"
232+
/>
213233
<div
214234
class="remove_button"
215235
data-testid="remove-icon"
@@ -239,6 +259,10 @@ exports[`TitleBar render should render self, children with base props 1`] = `
239259
Send Message
240260
241261
</div>
262+
<div
263+
class="copy_button"
264+
data-testid="copy-icon"
265+
/>
242266
<div
243267
class="remove_button"
244268
data-testid="remove-icon"

0 commit comments

Comments
 (0)