@@ -99,13 +99,15 @@ describe('getInterfaceResponse', () => {
9999 const response = getInterfaceResponse (
100100 runSaga ,
101101 DIALOG_APPROVAL_TYPES [ DialogType . Alert ] ,
102+ 'foo' ,
102103 < Text > foo</ Text > ,
103104 interfaceActions ,
104105 ) ;
105106 assertIsAlertDialog ( response ) ;
106107
107108 expect ( response ) . toStrictEqual ( {
108109 type : DialogType . Alert ,
110+ id : 'foo' ,
109111 content : < Text > foo</ Text > ,
110112 clickElement : expect . any ( Function ) ,
111113 typeInField : expect . any ( Function ) ,
@@ -127,13 +129,15 @@ describe('getInterfaceResponse', () => {
127129 const response = getInterfaceResponse (
128130 runSaga ,
129131 DIALOG_APPROVAL_TYPES [ DialogType . Confirmation ] ,
132+ 'foo' ,
130133 < Text > foo</ Text > ,
131134 interfaceActions ,
132135 ) ;
133136
134137 assertIsConfirmationDialog ( response ) ;
135138 expect ( response ) . toStrictEqual ( {
136139 type : DialogType . Confirmation ,
140+ id : 'foo' ,
137141 content : < Text > foo</ Text > ,
138142 clickElement : expect . any ( Function ) ,
139143 typeInField : expect . any ( Function ) ,
@@ -156,13 +160,15 @@ describe('getInterfaceResponse', () => {
156160 const response = getInterfaceResponse (
157161 runSaga ,
158162 DIALOG_APPROVAL_TYPES [ DialogType . Confirmation ] ,
163+ 'foo' ,
159164 < Text > foo</ Text > ,
160165 interfaceActions ,
161166 ) ;
162167
163168 assertIsConfirmationDialog ( response ) ;
164169 expect ( response ) . toStrictEqual ( {
165170 type : DialogType . Confirmation ,
171+ id : 'foo' ,
166172 content : < Text > foo</ Text > ,
167173 clickElement : expect . any ( Function ) ,
168174 typeInField : expect . any ( Function ) ,
@@ -185,13 +191,15 @@ describe('getInterfaceResponse', () => {
185191 const response = getInterfaceResponse (
186192 runSaga ,
187193 DIALOG_APPROVAL_TYPES [ DialogType . Prompt ] ,
194+ 'foo' ,
188195 < Text > foo</ Text > ,
189196 interfaceActions ,
190197 ) ;
191198
192199 assertIsPromptDialog ( response ) ;
193200 expect ( response ) . toStrictEqual ( {
194201 type : DialogType . Prompt ,
202+ id : 'foo' ,
195203 content : < Text > foo</ Text > ,
196204 clickElement : expect . any ( Function ) ,
197205 typeInField : expect . any ( Function ) ,
@@ -214,13 +222,15 @@ describe('getInterfaceResponse', () => {
214222 const response = getInterfaceResponse (
215223 runSaga ,
216224 DIALOG_APPROVAL_TYPES [ DialogType . Prompt ] ,
225+ 'foo' ,
217226 < Text > foo</ Text > ,
218227 interfaceActions ,
219228 ) ;
220229
221230 assertIsPromptDialog ( response ) ;
222231 expect ( response ) . toStrictEqual ( {
223232 type : DialogType . Prompt ,
233+ id : 'foo' ,
224234 content : < Text > foo</ Text > ,
225235 clickElement : expect . any ( Function ) ,
226236 typeInField : expect . any ( Function ) ,
@@ -243,13 +253,15 @@ describe('getInterfaceResponse', () => {
243253 const response = getInterfaceResponse (
244254 runSaga ,
245255 DIALOG_APPROVAL_TYPES [ DialogType . Prompt ] ,
256+ 'foo' ,
246257 < Text > foo</ Text > ,
247258 interfaceActions ,
248259 ) ;
249260
250261 assertIsPromptDialog ( response ) ;
251262 expect ( response ) . toStrictEqual ( {
252263 type : DialogType . Prompt ,
264+ id : 'foo' ,
253265 content : < Text > foo</ Text > ,
254266 clickElement : expect . any ( Function ) ,
255267 typeInField : expect . any ( Function ) ,
@@ -272,6 +284,7 @@ describe('getInterfaceResponse', () => {
272284 const response = getInterfaceResponse (
273285 runSaga ,
274286 DIALOG_APPROVAL_TYPES . default ,
287+ 'foo' ,
275288 < Container >
276289 < Box >
277290 < Text > foo</ Text >
@@ -288,6 +301,7 @@ describe('getInterfaceResponse', () => {
288301 assertCustomDialogHasFooter ( response ) ;
289302
290303 expect ( response ) . toStrictEqual ( {
304+ id : 'foo' ,
291305 content : (
292306 < Container >
293307 < Box >
@@ -314,6 +328,7 @@ describe('getInterfaceResponse', () => {
314328 const response = getInterfaceResponse (
315329 runSaga ,
316330 DIALOG_APPROVAL_TYPES . default ,
331+ 'foo' ,
317332 < Container >
318333 < Box >
319334 < Text > foo</ Text >
@@ -329,6 +344,7 @@ describe('getInterfaceResponse', () => {
329344 assertCustomDialogHasPartialFooter ( response ) ;
330345
331346 expect ( response ) . toStrictEqual ( {
347+ id : 'foo' ,
332348 content : (
333349 < Container >
334350 < Box >
@@ -355,6 +371,7 @@ describe('getInterfaceResponse', () => {
355371 const response = getInterfaceResponse (
356372 runSaga ,
357373 DIALOG_APPROVAL_TYPES . default ,
374+ 'foo' ,
358375 < Container >
359376 < Box >
360377 < Text > foo</ Text >
@@ -367,6 +384,7 @@ describe('getInterfaceResponse', () => {
367384 assertCustomDialogHasNoFooter ( response ) ;
368385
369386 expect ( response ) . toStrictEqual ( {
387+ id : 'foo' ,
370388 content : (
371389 < Container >
372390 < Box >
@@ -391,13 +409,15 @@ describe('getInterfaceResponse', () => {
391409 const response = getInterfaceResponse (
392410 runSaga ,
393411 'Notification' ,
412+ 'foo' ,
394413 < Box >
395414 < Text > Foo</ Text >
396415 </ Box > ,
397416 interfaceActions ,
398417 ) ;
399418
400419 expect ( response ) . toStrictEqual ( {
420+ id : 'foo' ,
401421 content : (
402422 < Box >
403423 < Text > Foo</ Text >
@@ -1280,6 +1300,7 @@ describe('getInterface', () => {
12801300 rootControllerMessenger ,
12811301 ) . toPromise ( ) ;
12821302 expect ( result ) . toStrictEqual ( {
1303+ id,
12831304 type,
12841305 content : getJsxElementFromComponent ( content ) ,
12851306 clickElement : expect . any ( Function ) ,
@@ -1311,6 +1332,7 @@ describe('getInterface', () => {
13111332
13121333 const result = await promise ;
13131334 expect ( result ) . toStrictEqual ( {
1335+ id,
13141336 type,
13151337 content : getJsxElementFromComponent ( content ) ,
13161338 clickElement : expect . any ( Function ) ,
0 commit comments