feat: Add ability to create a new conversation if the previous conversation is resolved (#2512)

Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
Muhsin Keloth 2021-06-30 21:09:44 +05:30 committed by GitHub
parent e6e9916fdb
commit f0f66c7da6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 119 additions and 16 deletions

View file

@ -6,6 +6,7 @@ global.chatwootWebChannel = {
avatarUrl: 'https://test.url',
hasAConnectedAgentBot: 'AgentBot',
enabledFeatures: ['emoji_picker', 'attachments'],
preChatFormOptions: { require_email: false, pre_chat_message: '' },
};
global.chatwootWidgetDefaults = {
@ -31,6 +32,14 @@ describe('configMixin', () => {
avatarUrl: 'https://test.url',
hasAConnectedAgentBot: 'AgentBot',
enabledFeatures: ['emoji_picker', 'attachments'],
preChatFormOptions: {
pre_chat_message: '',
require_email: false,
},
});
expect(wrapper.vm.preChatFormOptions).toEqual({
requireEmail: false,
preChatMessage: '',
});
});
});