From 9fcb97ef1cc3c28e7a6e7ac7dfbf4092bc993dd4 Mon Sep 17 00:00:00 2001 From: Oriol Raventos Date: Mon, 29 Jul 2024 16:18:00 +0200 Subject: [PATCH] test(plugin-hubtype-analytics): add bot_interaction_id in expect events --- .../tests/event-feedback-knowledgebase.test.ts | 1 + .../tests/event-feedback.test.ts | 2 ++ .../tests/event-webview.test.ts | 2 ++ 3 files changed, 5 insertions(+) diff --git a/packages/botonic-plugin-hubtype-analytics/tests/event-feedback-knowledgebase.test.ts b/packages/botonic-plugin-hubtype-analytics/tests/event-feedback-knowledgebase.test.ts index 2869023c42..3a3e9672fc 100644 --- a/packages/botonic-plugin-hubtype-analytics/tests/event-feedback-knowledgebase.test.ts +++ b/packages/botonic-plugin-hubtype-analytics/tests/event-feedback-knowledgebase.test.ts @@ -31,6 +31,7 @@ describe('Create feedback knowledgebase event', () => { option: 'thumbs_down', value: 0, type: EventType.WebEvent, + bot_interaction_id: 'testInteractionId', }) }) }) diff --git a/packages/botonic-plugin-hubtype-analytics/tests/event-feedback.test.ts b/packages/botonic-plugin-hubtype-analytics/tests/event-feedback.test.ts index a71f55ee7b..8203a34208 100644 --- a/packages/botonic-plugin-hubtype-analytics/tests/event-feedback.test.ts +++ b/packages/botonic-plugin-hubtype-analytics/tests/event-feedback.test.ts @@ -27,6 +27,7 @@ describe('Create feedback event', () => { option: '**', value: 2, type: EventType.WebEvent, + bot_interaction_id: 'testInteractionId', }) }) @@ -57,6 +58,7 @@ describe('Create feedback event', () => { value: 2, comment: 'This is a comment', type: EventType.WebEvent, + bot_interaction_id: 'testInteractionId', }) }) }) diff --git a/packages/botonic-plugin-hubtype-analytics/tests/event-webview.test.ts b/packages/botonic-plugin-hubtype-analytics/tests/event-webview.test.ts index a8837745ff..5fab86a109 100644 --- a/packages/botonic-plugin-hubtype-analytics/tests/event-webview.test.ts +++ b/packages/botonic-plugin-hubtype-analytics/tests/event-webview.test.ts @@ -23,6 +23,7 @@ describe('Create webview events', () => { webview_step_name: 'step1', webview_step_n: 1, type: EventType.WebEvent, + bot_interaction_id: 'testInteractionId', }) }) @@ -50,6 +51,7 @@ describe('Create webview events', () => { webview_end_fail_type: 'canceled_by_user', webview_end_fail_message: 'Closed by user', type: EventType.WebEvent, + bot_interaction_id: 'testInteractionId', }) }) })