Skip to content

Commit 24623ee

Browse files
committed
fix: Update snapshots to reflect changes in copy button rendering and flow context definition
1 parent de61f3b commit 24623ee

5 files changed

Lines changed: 8 additions & 19 deletions

File tree

src/components/__snapshots__/index.test.ts.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Array [
99
"classifiers": "/assets/classifiers.json",
1010
"completion": "",
1111
"contacts": "/assets/recipients.json",
12+
"copyNodeEnabled": "/copy-node-enabled",
1213
"editor": "/flow/editor",
1314
"environment": "/assets/environment.json",
1415
"fields": "/assets/fields.json",

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ exports[`ActionWrapper render should display hybrid style 1`] = `
1717
>
1818
<TitleBar
1919
__className="send_msg"
20-
onCopy={[Function]}
2120
onMoveUp={[Function]}
2221
onRemoval={[Function]}
2322
shouldCancelClick={[Function]}
@@ -133,7 +132,7 @@ exports[`ActionWrapper render should render self, children with base props 1`] =
133132
Object {
134133
"__className": "send_msg",
135134
"nodeUUID": undefined,
136-
"onCopy": [Function],
135+
"onCopy": undefined,
137136
"onMoveUp": [Function],
138137
"onRemoval": [Function],
139138
"shouldCancelClick": [Function],
@@ -160,7 +159,6 @@ exports[`ActionWrapper render should render self, children with base props 2`] =
160159
>
161160
<TitleBar
162161
__className="send_msg"
163-
onCopy={[Function]}
164162
onMoveUp={[Function]}
165163
onRemoval={[Function]}
166164
shouldCancelClick={[Function]}

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,7 @@ exports[`ActionWrapper renders a base language 1`] = `
114114
</div>
115115
<div
116116
class="copy_button"
117-
data-testid="copy-icon"
118-
>
119-
<temba-icon
120-
name="copy"
121-
size="1.2"
122-
/>
123-
</div>
117+
/>
124118
<div
125119
class="remove_button"
126120
data-testid="remove-icon"

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -139,13 +139,7 @@ exports[`NodeComp renders a named random split 1`] = `
139139
</div>
140140
<div
141141
class="copy_button"
142-
data-testid="copy-icon"
143-
>
144-
<temba-icon
145-
name="copy"
146-
size="1.2"
147-
/>
148-
</div>
142+
/>
149143
<div
150144
class="remove_button"
151145
data-testid="remove-icon"

src/store/thunks.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,8 @@ describe('copy-paste thunks', () => {
902902
flowContext: {
903903
nodes: { 'node-sm': sendMsgNode, 'node-im': imNode, 'node-wfr': wfrNode },
904904
assetStore: { results: { type: AssetType.Result, items: {} } },
905-
issues: {}
905+
issues: {},
906+
definition: boring
906907
}
907908
};
908909

@@ -1024,7 +1025,8 @@ describe('copy-paste thunks', () => {
10241025
flowContext: {
10251026
nodes: { 'node-im': imWithResult, 'node-wfr': wfrWithSameResult },
10261027
assetStore: { results: { type: AssetType.Result, items: {} } },
1027-
issues: {}
1028+
issues: {},
1029+
definition: boring
10281030
}
10291031
};
10301032

0 commit comments

Comments
 (0)